diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-05 13:45:22 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-09-05 13:45:22 -0300 |
| commit | dee4d326c7ab5b353813877e452cd72103e644b0 (patch) | |
| tree | 2f667be78f579dbcf2c80dabb8825b5e0fb0125e /src/main/java/bjc/rgens/parser/new-syntax.txt | |
| parent | 7d84d243009e92f2a0ade353555cae824d5b2352 (diff) | |
Make variable grammar dependant
This makes variables scoped by grammar. Previously, you could set a
variable in one grammar, and access it from any grammar, as long as the
rule case that defined it was executed before hand. Now, only cases in
that grammar can use it.
There are still issues to do with the fact that variables can be used at
any time after they've been defined, even after their introductory rule
returned. I'm not certain that this is enough of an issue to bother
trying to fix it though.
The next step is an autovivify pragma for rules to solve several corner
cases, with the main one being wanting to use exhaustible variables from
prefix/suffix pragmas.
Diffstat (limited to 'src/main/java/bjc/rgens/parser/new-syntax.txt')
0 files changed, 0 insertions, 0 deletions
