core: Rewrite reader to create less garbage.
authorJan Nieuwenhuizen <janneke@gnu.org>
Mon, 9 Apr 2018 06:41:30 +0000 (08:41 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Mon, 9 Apr 2018 06:41:30 +0000 (08:41 +0200)
commit72fc46a5720d95d4a547642fea6d860db90c89cc
tree9f43e50626eb24306932b8c8bb74eb8b4087396d
parent25907f514cc657ae669fd775ab14480ee41d66e8
core: Rewrite reader to create less garbage.

* src/reader.c (reader_read_line_comment): Rename from read_line_comment.
(reader_identifier_p): New function.
(reader_end_of_word_p): New function.
(reader_read_identifier_or_number): New function.
(reader_read_sexp_): Rewrite.  Update callers.
(reader_read_list): Rewrite.
(reader_lookup_): Remove.
module/mes/repl.mes
src/reader.c