summaryrefslogtreecommitdiff
path: root/doc/ref/scheme-using.texi
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-10-10 17:01:11 +0200
committerAndy Wingo <wingo@pobox.com>2011-10-10 17:01:11 +0200
commitd62dd766856492e494ff560c05e750f006c58612 (patch)
treec21b732d310fe5e66f3654108be61a4023862afb /doc/ref/scheme-using.texi
parent34c5fe83c021eb27c5bdff0f1328c733a7cb45b4 (diff)
downloadguile-d62dd766856492e494ff560c05e750f006c58612.tar.gz
add ,expand and ,optimize
* module/system/repl/command.scm (*command-table*, expand, optimize): New meta-commands. * module/system/repl/common.scm (repl-expand, repl-optimize): New helpers. * doc/ref/scheme-using.texi (Compile Commands): Document.
Diffstat (limited to 'doc/ref/scheme-using.texi')
-rw-r--r--doc/ref/scheme-using.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/ref/scheme-using.texi b/doc/ref/scheme-using.texi
index ccf5e1e07..2713fabdd 100644
--- a/doc/ref/scheme-using.texi
+++ b/doc/ref/scheme-using.texi
@@ -271,6 +271,14 @@ Generate compiled code.
Compile a file.
@end deffn
+@deffn {REPL Command} expand exp
+Expand any macros in a form.
+@end deffn
+
+@deffn {REPL Command} optimize exp
+Run the optimizer on a piece of code and print the result.
+@end deffn
+
@deffn {REPL Command} disassemble exp
Disassemble a compiled procedure.
@end deffn