diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2011-11-17 09:59:37 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2011-11-17 09:59:37 -0800 |
commit | 2668e984caf88abb2bd8d20d50573f23e73aa695 (patch) | |
tree | 397564df75a79b06df6b14c1b87c93143a3130f8 | |
parent | a075a17b531653246b9e25f76aa6efb83f4055a9 (diff) | |
download | txr-2668e984caf88abb2bd8d20d50573f23e73aa695.tar.gz txr-2668e984caf88abb2bd8d20d50573f23e73aa695.tar.bz2 txr-2668e984caf88abb2bd8d20d50573f23e73aa695.zip |
* parser.y: Bugfix: precedence of { } must be low, close to that of
IDENT, otherwise @{var}@(foo) doesn't parse.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parser.y | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2011-11-17 Kaz Kylheku <kaz@kylheku.com> + + * parser.y: Bugfix: precedence of { } must be low, close to that of + IDENT, otherwise @{var}@(foo) doesn't parse. + 2011-11-16 Kaz Kylheku <kaz@kylheku.com> Allow directives after variable to be a kind of negative match. @@ -91,10 +91,11 @@ static val parsed_spec; %nonassoc LOW /* used for precedence assertion */ %right IDENT +%nonassoc '{' '}' %right ALL SOME NONE MAYBE CASES CHOOSE AND OR END COLLECT UNTIL COLL %right OUTPUT REPEAT REP FIRST LAST EMPTY DEFINE %right SPACE TEXT NUMBER -%nonassoc '[' ']' '{' '}' '(' ')' +%nonassoc '[' ']' '(' ')' %left '-' %left '|' '/' %left '&' |