diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2018-07-17 06:39:26 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2018-07-17 06:39:26 -0700 |
commit | d3fd04b03a9fb48ba8d0323d7ac1f45c2645c7b1 (patch) | |
tree | e7992cafaf6f9f7bf57a06179d4459b387595739 /tests | |
parent | e7c14e74668d15f0403c868847779d795d167c8a (diff) | |
download | txr-d3fd04b03a9fb48ba8d0323d7ac1f45c2645c7b1.tar.gz txr-d3fd04b03a9fb48ba8d0323d7ac1f45c2645c7b1.tar.bz2 txr-d3fd04b03a9fb48ba8d0323d7ac1f45c2645c7b1.zip |
compile-file: incremental expansion of top-level forms.
Harmonizing with the previous change to eval, the
compiler should also handle those situations.
* share/txr/stdlib/compiler.tl (compile-file): do not perform
a full expansion on each object that it reads from the file
before passing it into the top-level walk. Rather, the
raw form is passed into the top-level walk. It is partially
expanded with macro-expand, and this is repated at each
descent of the recursion. Only forms which are not top-level
forms are then fully expanded before compilation, by not
passing the t argument to compile-toplevel.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions