diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 10:39:11 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2016-09-25 10:39:11 -0700 |
commit | 7656e99c9e1ffb509a6310cadca26c4c1c7008c9 (patch) | |
tree | ced81ca5a3699beab13c54b3d21d1c51fcbf770b /txr.1 | |
parent | 2707a8937c4b3f969e57f8ab599269feb693e903 (diff) | |
download | txr-7656e99c9e1ffb509a6310cadca26c4c1c7008c9.tar.gz txr-7656e99c9e1ffb509a6310cadca26c4c1c7008c9.tar.bz2 txr-7656e99c9e1ffb509a6310cadca26c4c1c7008c9.zip |
New function: regex-source.
* regex.c (regex_source): New function.
(regex_init): regex-source intrinsic registered.
* regex.h (regex_source): Declared.
* txr.1: Documented.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -32173,6 +32173,21 @@ stream. (regex-compile "a|b|c") .cble +.coNP Function @ regex-source +.synb +.mets (regex-source << regex ) +.syne +.desc +The +.code regex-source +function returns the source code of compiled regular expression +.metn regex . + +The source code isn't the textual notation, but the Lisp +data structure representing the abstract syntax tree: the +same representation as what is returned by +.codn regex-parse . + .coNP Function @ regex-parse .synb .mets (regex-parse < string <> [ error-stream ]) |