[antlr-interest] Fortran grammars

Olivier Dragon dragonoe at mcmaster.ca
Mon Jun 13 11:34:25 PDT 2005


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]
        ~~~--<***************>--~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20050613/628f47cd/attachment.bin


More information about the antlr-interest mailing list