Mercurial > hg > index.cgi
diff src/keywordlist.txt @ 124:8770e6f977c3
Rework parser to use parse_wordtab for symbols too
There's no reason not to use the parse_wordtab table thing to match the
symbols with their token codes. It takes less space than the combined code
and tables to do it separately.
author | William Astle <lost@l-w.ca> |
---|---|
date | Mon, 01 Jan 2024 15:57:59 -0700 |
parents | 5681cdada362 |
children | ac183a519439 |
line wrap: on
line diff
--- a/src/keywordlist.txt Mon Jan 01 15:15:45 2024 -0700 +++ b/src/keywordlist.txt Mon Jan 01 15:57:59 2024 -0700 @@ -1,20 +1,47 @@ -AND,token_and -AS,token_as -ASC,token_asc -DATA,token_data -ELSE,token_else -END,token_end -GO,token_go -LET,token_let -LIST,token_list -NEW,token_new -NOT,token_not -OR,token_or -POP,token_pop -PRINT,token_print -REM,token_rem -RETURN,token_return -RUN,token_run -STOP,token_stop -SUB,token_sub -TO,token_to +! token_bang +# token_hash +$ token_dollar +% token_percent +& token_amp +' token_apos +( token_oparen +) token_cparen +* token_star ++ token_plus +, token_comma +- token_minus +/ token_slash +: token_stmtsep +; token_semi +? token_print +@ token_at +^ token_exp +< token_lt +<= token_le +=> token_le +> token_gt +>= token_ge +=> token_ge +<> token_ne +>< token_ne += token_eq +AND token_and +AS token_as +ASC token_asc +DATA token_data +ELSE token_else +END token_end +GO token_go +LET token_let +LIST token_list +NEW token_new +NOT token_not +OR token_or +POP token_pop +PRINT token_print +REM token_rem +RETURN token_return +RUN token_run +STOP token_stop +SUB token_sub +TO token_to