3 ms·
> However, a key observation is that even LR(k) is not enough for many industrial language features. Yes, although sometimes a minor hack is all that's needed.
by HarHarVeryFunny 4y ago
> However, a key observation is that even LR(k) is not enough for many industrial language features.
Yes, although sometimes a minor hack is all that's needed. For C/C++ you can maintain a symbol table while parsing, then have your "lexer" return a different token for a type-name vs other identifiers.