summaryrefslogtreecommitdiffstats
path: root/txr.1
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2016-09-25 10:39:11 -0700
committerKaz Kylheku <kaz@kylheku.com>2016-09-25 10:39:11 -0700
commit7656e99c9e1ffb509a6310cadca26c4c1c7008c9 (patch)
treeced81ca5a3699beab13c54b3d21d1c51fcbf770b /txr.1
parent2707a8937c4b3f969e57f8ab599269feb693e903 (diff)
downloadtxr-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.115
1 files changed, 15 insertions, 0 deletions
diff --git a/txr.1 b/txr.1
index 3293ef81..508b8c72 100644
--- a/txr.1
+++ b/txr.1
@@ -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 ])