diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-03-09 21:24:55 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-03-09 21:24:55 -0700 |
commit | de2624b04b91359337d4cd5e29b97720ed61df1b (patch) | |
tree | f22f51b06dd8ab87b534b4ddbadbe7efed63aad2 | |
parent | 6d962407c0ea219214c752a7a63fac83adab0301 (diff) | |
download | txr-de2624b04b91359337d4cd5e29b97720ed61df1b.tar.gz txr-de2624b04b91359337d4cd5e29b97720ed61df1b.tar.bz2 txr-de2624b04b91359337d4cd5e29b97720ed61df1b.zip |
* parser.l: Syntactic tweak. Do not allow the "extra"
constituent chars # or ^ to start the symbol name after an @.
Prior to this change @^a is a "meta-symbol" whose name is "^a",
but ^a is the ^ quasiquote notation followed by symbol a.
After this change @^a is meta, applied to quasiquote-a.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | parser.l | 4 |
2 files changed, 10 insertions, 2 deletions
@@ -1,5 +1,13 @@ 2014-03-09 Kaz Kylheku <kaz@kylheku.com> + * parser.l: Syntactic tweak. Do not allow the "extra" + constituent chars # or ^ to start the symbol name after an @. + Prior to this change @^a is a "meta-symbol" whose name is "^a", + but ^a is the ^ quasiquote notation followed by symbol a. + After this change @^a is meta, applied to quasiquote-a. + +2014-03-09 Kaz Kylheku <kaz@kylheku.com> + * lib.c (lazy_sub_str): Bugfix: "from" was mistakenly used in the adjustment of the "to" value. @@ -164,13 +164,13 @@ ID_END [^a-zA-Z0-9!$%&*+\-<=>?\\_~/] EXTRA [#^] TOK {SYM} BT0 {BSCHR}({BSCHR}|{EXTRA})* -BT1 @({BSCHR}|{EXTRA})+ +BT1 @{BT0}+ BT2 ({BSCHR}|{EXTRA})+ BTREG (({BT0}|{BT1})?:{BT2}|({BT0}|{BT1})(:{BT2})?|:) BTKEY @?:{BT2}? BTOK {BTREG}|{BTKEY} NT0 {NSCHR}({NSCHR}|{EXTRA})* -NT1 @({NSCHR}|{EXTRA})+ +NT1 @{NT0}+ NT2 ({NSCHR}|{EXTRA})+ NTREG (({NT0}|{NT1})?:{NT2}|({NT0}|{NT1})(:{NT2})?|:) NTKEY @?:{NT2}? |