diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-04-03 20:07:30 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-04-03 20:07:30 -0700 |
commit | 3ce8999b2cc9c2aa04805141af9cb449d92fa89e (patch) | |
tree | f4aefbf47c4743ee70e4ccf0864dfdc3eb14616f /lisplib.c | |
parent | bd799f60625bea91facb671f4082ad04a8f59380 (diff) | |
download | txr-3ce8999b2cc9c2aa04805141af9cb449d92fa89e.tar.gz txr-3ce8999b2cc9c2aa04805141af9cb449d92fa89e.tar.bz2 txr-3ce8999b2cc9c2aa04805141af9cb449d92fa89e.zip |
compiler: first cut compile-file implementation.
* lisplib.c (compiler_set_entries): Autoload on compile-file.
* parser.c (parse_init): Expose get-parser, parser-errors and
parser-eof intrinsics in system package.
* share/txr/stdlib/compiler.tl (compiler): Wrap defstruct form
in compile-only. What this means is that when we invoke
comile-file on compiler.tl, the compiler will only compile
this defstruct and not evaluate it. I.e. it will not try to
redefine the structure. Redefining the core structure of the
compiler while it is compiling itself wreaks havoc on the
compilation.
(%fille-suff-rx%, *emit*, *eval*): New variables.
(open-compile-streams, list-from-vm-desc, usr:compile-file):
New functions.
* vm.c (vm_desc_nlevels, vm_desc_nregs): New static functions.
(vm_init): Register new intrinsics vm-desc-nlevels and
vn-desc-nregs in system package.
Diffstat (limited to 'lisplib.c')
-rw-r--r-- | lisplib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -658,7 +658,7 @@ static val compiler_set_entries(val dlt, val fun) nil }; val name[] = { - lit("compile-toplevel"), + lit("compile-toplevel"), lit("compile-file"), nil }; |