summaryrefslogtreecommitdiffstats
path: root/genvim.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-01-27 22:52:08 -0800
committerKaz Kylheku <kaz@kylheku.com>2014-01-27 22:52:08 -0800
commit681c02622c94ea17ebe417333e3dd078ee49ba5c (patch)
treeeacb631e69cc7b821b7d544319c86cd306a19d18 /genvim.txr
parent05c9d8a60d75f58655b75f2fda3f2696a56637e6 (diff)
downloadtxr-681c02622c94ea17ebe417333e3dd078ee49ba5c.tar.gz
txr-681c02622c94ea17ebe417333e3dd078ee49ba5c.tar.bz2
txr-681c02622c94ea17ebe417333e3dd078ee49ba5c.zip
Lexing and parsing improvements, leaving things less hacky than before,
albeit hacky. * parser.l (BSYM, NSYM): Regex definitions gone. (BT0, BT1, BT2, NT0, NT1, NT2): New regex definitions. (BTREG, BTKEY, NTREG, NTKEY): Rewritten, so that they cannot match a lone @ character as a symbol name. (grammar): Rules for returning METAPAR, METABKT and METAQUO are gone. Instead, we just recognize a @ in the NESTED and BRACED states and return it as a token. * parser.y (METAPAR, METABKT, METAQUO): Token types removed. (meta_expr): Nonterminal symbol removed. ('@'): New token type. (list): Quotes and splices handling removed from this rule. The new token '@' is handled here, on the other hand, because there are places that reference the list rule that need to support @ expressions. (n_expr): Reference to meta_expr removed. Quote, unquote and splice added here. (yybadtoken): Removed references to METAPAR, METABKT and METAQUO.
Diffstat (limited to 'genvim.txr')
0 files changed, 0 insertions, 0 deletions