Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran-dev] Commit rights for Craig Rasmussen have been expired

> That's too bad. I noticed he's contributed an ANTLR grammar for Fortran
> 2008 to antlr.org recently. As I get more serious about ANTLR for CDT,

I assume that's the Open Fortran Parser --
http://fortran-parser.sourceforge.net/

A few years ago, we started looking at moving Photran to use OFP...
partly to better distribute the work between UIUC and LANL.  I
actually had my rewritable AST generator fairly well integrated with
ANTLR.  But, unfortunately, the switch was a lot more difficult than I
hoped, so it never happened.  It ended up being easier to add Fortran
2003 and 2008 support to our existing parser.

I looked at using OFP to build a CDT-style AST and index/PDOM when I
was working for Greg in Summer '08.  The report is at
http://wiki.eclipse.org/images/e/e9/Photran-report.pdf  I don't
remember running into any particular problems on CDT's side of things.
 The only reason it wasn't finished is that the Fortran grammar is
about 50 pages long, and the time it would take to write all of the
AST node classes, the semantic actions for the parser, test cases,
etc. was way beyond what I could do in three months.

Jeff


Back to the top