Re:Parsing C++ is literally undecidable (2013)
by lallysingh on Friday October 04, 2019 @06:21PM
(#21162406)
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.
[ Parent
| on HN ]
Re:Parsing C++ is literally undecidable (2013)
by jonstewart on Friday October 04, 2019 @10:31PM
(#21163481)
It'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.