[antlr-interest] Fortran grammars
Terence Parr
parrt at cs.usfca.edu
Mon Jun 13 11:36:57 PDT 2005
Hi. I *know* I have f77.g around...but I think it's PCCTS. OH, here
it is in share area. Heh, even the antlr.org search found it! I
gotta fix that thing soon to be better...
http://www.antlr.org/share/1077305245771/fort.g
Ter
On Jun 13, 2005, at 11:34 AM, Olivier Dragon wrote:
> Greetings,
>
> I'm new to ANTLR and I was wondering if anyone here has a FORTRAN 77
> (actually any grammar for FORTRAN I, II, III, IV, 66 and/or 77). I'm
> looking at building ASTs in Java from legacy FORTRAN applications.
> I've
> looked into other alternatives like Eli and Sage++ but I would really
> prefer to stick with Java, hence use ANTLR.
>
> After spending a couple of days searching on google and following
> links
> into oblivion I could not find anything ANTLR related for FORTRAN. The
> ANTLR grammar list [http://www.antlr.org/grammar/list] does not
> include
> anything about FORTRAN.
>
> My current solution would be to translate the grammar from an open
> source project like Eli, g77, f2c or Waite's into something ANTLR can
> understand. Before I jump into this possible nightmare I simply wanted
> to know if it's already been done or if there's an easier/better
> way to
> do this. Also if you know of better resources on the matter I would be
> most delighted to hear about them.
>
> I very much appreciate your time and feedback.
>
> -Olivier
>
> --
> __-/| ? ? |\-__
> __--/ / \ (^^) / \ \--__
> _-/ / / /\ / ( ) /\ \ \ \-_
> / / / / / ( ^^ ~ \ \ \ \ \
> / Oli Dragon ( dragonoe at mcmaster.ca \
> / B.Eng. Sfwr ( ) \ \ \ \
> / / / /__--_ ( ) __--__\ \ \ \
> | / / _/ \_ \_ \_ \ \ |
> \/ / _/ \_ \_ \_ \ \/
> \_/ / -\_\ \ \_/
> \/ ) \/
> *~
> ___--<***************>--___
> [http://dragon.homelinux.org]
> ~~~--<***************>--~~~
>
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the antlr-interest
mailing list