core: FAT_C_READER: Show your speed.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sun, 25 Dec 2016 07:41:27 +0000 (08:41 +0100)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sun, 25 Dec 2016 07:41:27 +0000 (08:41 +0100)
commitd8ea0d593b4f4f60b6c549f5de5a93c1e6ca6621
treed821a7c2dd93cc5f630e9d07b20cacc27b3a943a
parent49f1c4e5f3dfb67c93408cda7236845d45495f79
core: FAT_C_READER: Show your speed.

scripts/nyacc.mes runs in 4s rather than 18s with fat C reader.
This is a courtesy commit intended to prevent bitrot.

* mes.c (quasiquote, unquote, unquote_splicing, syntax, quasisyntax,
  unsyntax, unsyntax_splicing): Add symbols.
* reader.c (char_eof, char_nul, char_alarm, char_backspace, char_tab,
  char_newline, char_vtab, char_page, char_return,
  char_space)[FAT_C_READER]: New global variables.
  (make_keyword, read_block_comment, read_character, read_hex,
  append_char, read_string, fat_c_lookup_, fat_c_eat_whitespace,
  fat_c_read_word): New functions.
  (eat_whitespace_, read_word_, lookup_)[FAT_C_READER]: Add hook.
GNUmakefile
mes.c
reader.c