altos/lisp: Make read() return eof atom on end of file
authorKeith Packard <keithp@keithp.com>
Fri, 11 Nov 2016 07:25:56 +0000 (23:25 -0800)
committerKeith Packard <keithp@keithp.com>
Fri, 18 Nov 2016 06:18:39 +0000 (22:18 -0800)
commit2ed769dae3f003951924be9e3a392fd6024a8d5e
tree1dcbf9833baeeb5a6d809e6505d1eea1e702e5e4
parentdd2382eb2185735822a0036ba0ef436869a71922
altos/lisp: Make read() return eof atom on end of file

Also make it an exception to hit eof in the middle of an sexpr.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/lisp/ao_lisp.h
src/lisp/ao_lisp_read.c
src/lisp/ao_lisp_rep.c