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 /ChangeLog | |
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 'ChangeLog')
-rw-r--r-- | ChangeLog | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -1,3 +1,32 @@ +2012-02-03 Kaz Kylheku <kaz@kylheku.com> + + * 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. + 2012-02-02 Kaz Kylheku <kaz@kylheku.com> * utf8.c (utf8_from_uc, utf8_decode): Use upper case for hex constants. |