diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-18 06:30:04 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-18 06:30:04 -0800 |
commit | 9e48dd8f5265d5ea0dd683da6721b58fafcd8422 (patch) | |
tree | ce0da858dafaad1e1769d7a8669ed8794cfcdca3 /share | |
parent | 35e2b84d9a0b65020ba5ee7dcc725f2c25fff537 (diff) | |
download | txr-9e48dd8f5265d5ea0dd683da6721b58fafcd8422.tar.gz txr-9e48dd8f5265d5ea0dd683da6721b58fafcd8422.tar.bz2 txr-9e48dd8f5265d5ea0dd683da6721b58fafcd8422.zip |
expander: improve diagnosis of invalid dotted syntax.
* eval.c (dotted_form_error): Use eval_error instead of
throwing direcly, so the error message has location info and
consistent formatting.
(expand_forms, expand_forms_ss, expand_forms_lisp1): Check for
the dotting error one level above, at the cons cell. The cons
cell will have line number information attached to it for a
better error message.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions