[Haskell-cafe] Generate Fortran 77 parser from a yacc grammar using Happy

2009-06-23 Thread Cetin Sert
I have stumbled upon the following F77 yacc grammar:
http://yaxx.cvs.sourceforge.net/viewvc/yaxx/yaxx/fortran/fortran.y?revision=1.3view=markup
.

How can I make a Fortran 77 parser out of this file using
Happyhttp://www.haskell.org/happy/
?

Why is there some C?/C++? code in that .y file?
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Generate Fortran 77 parser from a yacc grammar using Happy

2009-06-23 Thread Brandon S. Allbery KF8NH

On Jun 23, 2009, at 07:57 , Cetin Sert wrote:

Why is there some C?/C++? code in that .y file?



It has the look of a production grammar with the reduction actions  
stripped out (but whatever they used didn't strip the %{ initializer  
block).  I would say that, for starters, you want to strip or modify  
the %{ block, and possibly remove/replace the empty { } actions in the  
grammar.  More I can't say; I know yacc, not happy.


--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allb...@kf8nh.com
system administrator [openafs,heimdal,too many hats] allb...@ece.cmu.edu
electrical and computer engineering, carnegie mellon universityKF8NH




PGP.sig
Description: This is a digitally signed message part
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe