3 ms·
A C++ parser needs a semantic analyzer. The grammar is context sensitive. Eyeball a full year for an engineer to get one that's actually standards compliant.
by lallysingh 7y ago
A C++ parser needs a semantic analyzer. The grammar is context sensitive. Eyeball a full year for an engineer to get one that's actually standards compliant. I've written a Java parser in two weeks in grad school while taking classes. You can easily use a parser generator (like ANTLR) because you have a context-free grammar.
- jonstewart 7y agoIt's well known that C++ is hard to parse. What's less well known is _how much_ the tools have gotten better in the last 10 years.