Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-core-dev] Open C++ Parser

> 
> This message is in MIME format. Since your mail reader does not understand
> this format, some or all of this message may not be legible.
> 
> ------_=_NextPart_001_01C2A1FD.015AC940
> Content-Type: text/plain
> 
> Hey all,
> 
>  
> 
> We're having a lot of fun here porting the Open C++ parser to Java for
> potential use in the CDT.  We've started parsing some basic things like
> stdio.h and performance up until now seems to be reasonable.
> 
>  
> 
> However, before we get too far, people on the conference call on Monday
> mentioned they had experience with the Open C++ parser and were willing to
> share that with us.  If you were one of those persons, could you please drop
> us a line.  I have made some changes to make the parser do what we want
> including: our own handwritten scanner that also handles pre-processor
> directives, using exceptions for backtracking, replacing the Ptree with our
> own JDT-like AST, amongst other minor changes.  In the end, we're really
> only using the grammar and the strategy of handwriting the parser.  And it
> seems to be working although there is a lot of testing that needs to go
> on...
> 

On this side of the pound, we have a preprocessor(base on the IBM CDT) and
work in progress ported the JavaCC C++ IBM parser.
But we will happilly let this go for the "Open C++", if you feel that it is
a better strategy for the long run.  There are lots of other pieces involve
in this, feel free to let me know your strategy.

- one of the nagging issue, is storing/indexing the information.
- dealing with different paths base on defines etc ...




Back to the top