diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2014-08-11 22:01:59 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2014-08-11 22:01:59 -0700 |
commit | 17c43f985b8c707e997fe65a20ce31430f51bb36 (patch) | |
tree | e607df7e43896557804c3600f263c72748f60639 /utf8.c | |
parent | 7876104ee7e73c190b67e90a87fe5a44f40c4af6 (diff) | |
download | txr-17c43f985b8c707e997fe65a20ce31430f51bb36.tar.gz txr-17c43f985b8c707e997fe65a20ce31430f51bb36.tar.bz2 txr-17c43f985b8c707e997fe65a20ce31430f51bb36.zip |
First cut at restructuring how variable matching works in the pattern
language. The goal is to remove the strict behavior of using only one
element of context after a variable.
variable form at parse time: we unravel that first.
* parser.y (grammar): Simplifying the phrase structure
rule for the var element. All the variants that have
a trailing elem are removed. The abstract syntax
changes; the modifier moves to the third position in the
list.
* match.c (h_var): Matching change: the element which follows
a variable is now pulled from the specline rather than the variable
syntax, which is how it should have been done in the first place. The
modifiers are pulled from a different spot in the variable syntax.
Diffstat (limited to 'utf8.c')
0 files changed, 0 insertions, 0 deletions