Julia,

Thanks for the links.  There do seem to be some C++ parsers out there in
addition to clang, which was already mentioned.  For the moment, I don't
really know the problems in parsing C++ well enough to appreciate the
solutions...

Parsing C++ is very hard because not only does a symbol table have
to be built but the what symbols get created depends on the
construct being parsed, which might depend on what's in the symbol
table ... see:
http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.27.1117

Some good examples of the problems are discussed in this thesis:
http://www.computing.surrey.ac.uk/research/dsrg/fog/fog/fog/v1/FogThesis.pdf

--
Derek M. Jones                         tel: +44 (0) 1252 520 667
Knowledge Software Ltd                 mailto:[email protected]
Source code analysis                   http://www.knosof.co.uk
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)

Reply via email to