|
|
|
|
|
by HarHarVeryFunny
1367 days 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. |
|