mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-24 20:45:08 +02:00
don't warn about invaild operators if there was a syntax error
This commit is contained in:
parent
4722703d64
commit
645d056812
1 changed files with 5 additions and 4 deletions
9
eval.c
9
eval.c
|
@ -828,11 +828,12 @@ static sexp analyze (sexp ctx, sexp object) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (! (sexp_pairp(sexp_car(x))
|
|
||||||
|| (sexp_synclop(sexp_car(x))
|
|
||||||
&& sexp_pairp(sexp_synclo_expr(sexp_car(x))))))
|
|
||||||
sexp_warn(ctx, "invalid operand in application: ", x);
|
|
||||||
res = analyze_app(ctx, x);
|
res = analyze_app(ctx, x);
|
||||||
|
if (!sexp_exceptionp(res)
|
||||||
|
&& !(sexp_pairp(sexp_car(x))
|
||||||
|
|| (sexp_synclop(sexp_car(x))
|
||||||
|
&& sexp_pairp(sexp_synclo_expr(sexp_car(x))))))
|
||||||
|
sexp_warn(ctx, "invalid operator in application: ", x);
|
||||||
}
|
}
|
||||||
} else if (sexp_idp(x)) {
|
} else if (sexp_idp(x)) {
|
||||||
res = analyze_var_ref(ctx, x, NULL);
|
res = analyze_var_ref(ctx, x, NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue