Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[ptp-dev] Reusing Photran parser ?


Hi,

I need to create a Fortran parser and I thought Photran could be a good base to work from. I already did a similar thing in the past with JDT parser and CDT parser and they proved really useful.

Did anybody try this already ?

Does anybody have a suggestion where to start ?

For example, how should I call the parser on a TransactionUnit to get its AST ? I did find some possibilities, but they all require to use internal classes such as FortranModelBuilder.setTranslationUnit() / FortranModelBuilder.parse()

And for the ASTVisitor ?
I could extend ASTVisitor or implement IASTVisitor, but again both are class/interface of internal packages ...

Any pointer would be welcome

thanks

nicolas

--
Nicolas Anquetil -- MCF (HDR)
Project-Team RMod



Back to the top