4 ms·
Is there any parser autogeneration tool that can cope with c++11's grammer? Including weird edge cases like template vs. comparison depending on previously dec
by dspeyer 14y ago
Is there any parser autogeneration tool that can cope with c++11's grammer? Including weird edge cases like template vs. comparison depending on previously declared types?
- Locke1689 14y agoC++ is messed up that you're gonna need to do some weird stuff. First, the grammar is ambiguous. Second, the template language is undecidable. Nothing you can do about the second. The first, you'll at least need something capable of parsing context-free languages. My recommendation is to start here[1]. [1] http://arxiv.org/abs/1010.5023 http://arxiv.org/abs/1010.5023