mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-04 03:36:36 +02:00
Signalling error on '(x . .) read syntax.
This commit is contained in:
parent
29411cb4ad
commit
b63537a8cc
1 changed files with 3 additions and 0 deletions
3
sexp.c
3
sexp.c
|
@ -2638,6 +2638,9 @@ sexp sexp_read_raw (sexp ctx, sexp in) {
|
|||
} else if (sexp_read_raw(ctx, in) != SEXP_CLOSE) {
|
||||
res = sexp_read_error(ctx, "multiple tokens in dotted tail",
|
||||
SEXP_NULL, in);
|
||||
} else if (tmp == SEXP_RAWDOT) {
|
||||
res = sexp_read_error(ctx, "multiple dots in list",
|
||||
SEXP_NULL, in);
|
||||
} else {
|
||||
tmp2 = res;
|
||||
res = sexp_nreverse(ctx, res);
|
||||
|
|
Loading…
Add table
Reference in a new issue