Mercurial > hg > index.cgi
view 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 source
! 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