warn on syntax errors inside unbound id applications

This commit is contained in:
Alex Shinn 2011-03-08 11:39:30 +00:00
parent 205008d7ce
commit 9ea986d34c

2
eval.c
View file

@ -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)) {