News for hackers. Stuff that matters.
Re:Parsing C++ is literally undecidable (2013) by cmrdporcupine on Friday October 04, 2019 @07:20AM (#21156544)
Oh, you haven't read this classic paper?

http://users.monash.edu/~damian/papers/PDF/ModestProposal.pd...

"We describe an alternative syntactic binding for C++. This new binding includes a completely redesigned declaration/definition syntaxfor types, functions and objects, a simplified template syntax, and changes to several problematic operators and control structures. Theresulting syntax is LALR(1) parsable and provides better consistency in the specification of similar constructs, better syntacticdifferentiation of dissimilar constructs, and greater overall readability of code."

There are no comments on this comment yet.