3 ms·
> grammar author does fully control the division between the parser and lexer Nifty. So explicit GLR forks at rule level (`conflicts:`), non-forking token "co
by mncharity 8y ago
> grammar author does fully control the division between the parser and lexer
Nifty. So explicit GLR forks at rule level (`conflicts:`), non-forking token "conflict" resolution[1], no token regex backtracking pressure across tokens, and token resolution at a single code position can(?) differ across conflicting rules? I'm uncertain on that last bit.
> In most cases, you don't have to think about it
Well yes, but, some of us crave much more syntactically flexible languages. :)
[1] https://tree-sitter.github.io/tree-sitter/creating-parsers#conflicting-tokens https://tree-sitter.github.io/tree-sitter/creating-parsers#c...