diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-04-29 20:27:40 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-04-29 20:27:40 -0700 |
commit | 2d76c83d30eeabf0b781c85e4ae21bdc6f0b012b (patch) | |
tree | b97537855c1da73a69af589b2ae486c4422abce6 /share | |
parent | d428a0e222590c1eb20c7abdf2905ff0ebddc69a (diff) | |
download | txr-2d76c83d30eeabf0b781c85e4ae21bdc6f0b012b.tar.gz txr-2d76c83d30eeabf0b781c85e4ae21bdc6f0b012b.tar.bz2 txr-2d76c83d30eeabf0b781c85e4ae21bdc6f0b012b.zip |
Improved syntax checking: defun, flet, labels, lambda.
* eval.c (check_lambda_list): New static function.
(op_defun): Argument list checking moved into
check_lambda_list, which is called for defun out of
do_expand. Name checks moved into do_expand.
Thus, defun is checked earlier, at expansion time.
(me_flet_labels): Check the lambda list of each lexical function
with check_lambda_list.
(do_expand): Check the syntax of the lambda form, and
the validity of its argument list.
Check the name of a defun or defmacro for validity.
Check the validity of the defun argument list.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions