mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-22 07:09:18 +02:00
warn on syntax errors inside unbound id applications
This commit is contained in:
parent
205008d7ce
commit
9ea986d34c
1 changed files with 2 additions and 0 deletions
2
eval.c
2
eval.c
|
@ -767,6 +767,8 @@ static sexp analyze (sexp ctx, sexp object) {
|
|||
sexp_synclo_expr(sexp_car(x)));
|
||||
if (! cell) {
|
||||
res = analyze_app(ctx, x);
|
||||
if (sexp_exceptionp(res))
|
||||
sexp_warn(ctx, "exception inside undefined operator: ", sexp_car(x));
|
||||
} else {
|
||||
op = sexp_cdr(cell);
|
||||
if (sexp_corep(op)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue