diff options
author | Keith Packard <keithp@keithp.com> | 2017-04-09 12:55:34 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-04-09 12:55:34 -0700 |
commit | 9e80b8bd10433ecc6ebe7c295e16b62b3883987d (patch) | |
tree | 5983b73c2df7e41b181aa773df806c2da7af6928 | |
parent | 83c1e4e8ca684f555cba252efd3882f811d8e154 (diff) |
altos: Escape lisp REP loop with () input
Provide a way to get out of a lisp read-eval-print loop that can be
easily input from the keyboard.
Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r-- | src/lisp/ao_lisp_rep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lisp/ao_lisp_rep.c b/src/lisp/ao_lisp_rep.c index ef7dbaf2..3be95d44 100644 --- a/src/lisp/ao_lisp_rep.c +++ b/src/lisp/ao_lisp_rep.c @@ -20,7 +20,7 @@ ao_lisp_read_eval_print(void) ao_poly in, out = AO_LISP_NIL; for(;;) { in = ao_lisp_read(); - if (in == _ao_lisp_atom_eof) + if (in == _ao_lisp_atom_eof || in == AO_LISP_NIL) break; out = ao_lisp_eval(in); if (ao_lisp_exception) { |