lex_def_scope.ebnf (207B)
1 // %def fragments are scoped to their lexer block: `digit` is private to the 2 // main lexer, so the `tail` lexer cannot reference it. 3 %lex { %def digit = [0-9]; N = digit; } 4 %lex tail { T = digit; } 5 s = N T;
kitkit | |
| git clone https://git.ryansepassi.com/git/kit.git | |
| Log | Files | Refs | README |