
11 Mar
2006
11 Mar
'06
9:30 p.m.
Parsing C++ is only possible (unambigiously) after
preprocessing it first, and when at any moment a full
list of every identifier is known: the parser needs
to know which types have been declared, which variables
exist etc, in the scope that it is parsing at that
moment. As a result, any C++ parser has to be almost
a compiler before it can work.
--
Carlo Wood