diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-18 21:04:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-18 21:04:54 -0700 |
commit | 632703656926b0ac6461538d3cbf35fb95df72dc (patch) | |
tree | c29c526757ea59828c1e7bcc86474767e02a5476 /txr.1 | |
parent | 3a9346cb299151cce4d46ebcf20c0f4bb76c697a (diff) | |
download | txr-632703656926b0ac6461538d3cbf35fb95df72dc.tar.gz txr-632703656926b0ac6461538d3cbf35fb95df72dc.tar.bz2 txr-632703656926b0ac6461538d3cbf35fb95df72dc.zip |
compiler: don't expand top-level forms twice.
* share/txr/stdlib/compiler.tl (usr:compile-toplevel): Support
optional parameter indicating that no expansion is required.
(usr:compile-file): Call compile-toplevel with a t argument
for the new expanded-p parameter, so no further expansion
takes place.
* txr.1: Document new optional parameter of compile-toplevel.
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -61983,7 +61983,7 @@ circular structures are reproduced. .coNP Function @ compile-toplevel .synb -.mets (compile-toplevel << form ) +.mets (compile-toplevel < form << expanded-p ) .syne .desc The @@ -62002,6 +62002,12 @@ using the .code eval function. +The +.meta expanded-p +argument indicates that +.meta form +has already been expanded and is to be compiled without further expansion. + Note: in spite of the name, .code compile-toplevel makes no consideration whether or not |