diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-02-03 00:28:01 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-02-03 00:28:01 -0800 |
commit | 442c9efa4b176ff2c4c89a43beac3ea3fad247d4 (patch) | |
tree | 20f0d8545174ed466d2825ea0315a0a7fdb57c50 /lib.h | |
parent | a7d3edcff56ee0faa8355ceaea7bc23c2f2e2aa7 (diff) | |
download | txr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.tar.gz txr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.tar.bz2 txr-442c9efa4b176ff2c4c89a43beac3ea3fad247d4.zip |
* eval.c (rest_s, op_s): New variables.
(do_eval_args): Allow calls specified by improper lists
like (x y . z) where the z expression must evaluate to a list
that turns into addition arguments to be applied.
(transform_op, expand_op): New static functions.
(expand): Call expand_op.
(eval_init): Initialize rest_s and op_s. Use rest_s
to register rest function.
* lib.c (gensym): New function based on gensymv.
(gensymv): Now calls gensym.
* lib.h (gensym): Declared.
* parser.l: Parse @ followed by digits as a new kind of token,
METANUM.
* parser.y (METANUM): New token.
(meta_expr, exprs): Missing rlcp's added.
(expr): METANUM variant introduced.
(yybadtoken): Handle METANUM.
* txr.1: Documented one-symbol argument list of lambda.
Documented op. Closed some unbalanced parentheses.
* txr.vim: Highlight op.
Diffstat (limited to 'lib.h')
-rw-r--r-- | lib.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -453,6 +453,7 @@ val span_str(val str, val set); val compl_span_str(val str, val set); val break_str(val str, val set); val make_sym(val name); +val gensym(val prefix); val gensymv(val args); val make_package(val name); val find_package(val name); |