mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
Don't treat bare () as the entire repl input as a literal.
This commit is contained in:
parent
6425c1480b
commit
77cf790158
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -199,7 +199,7 @@ static void repl (sexp ctx, sexp env) {
|
|||
sexp_print_exception(ctx, obj, err);
|
||||
} else {
|
||||
sexp_context_top(ctx) = 0;
|
||||
if (!(sexp_idp(obj)||sexp_pairp(obj)))
|
||||
if (!(sexp_idp(obj)||sexp_pairp(obj)||sexp_nullp(obj)))
|
||||
obj = sexp_make_lit(ctx, obj);
|
||||
tmp = sexp_env_bindings(env);
|
||||
res = sexp_eval(ctx, obj, env);
|
||||
|
|
Loading…
Add table
Reference in a new issue