|re: yacc grammar for cobol email@example.com (1991-01-25)|
|From:||firstname.lastname@example.org (John Hassey)|
|Keywords:||cobol, parse, yacc|
|Date:||Fri, 25 Jan 91 10:17:40 est|
Yes it is possible to write a yacc parser for Cobol. We did
just that for a re-implementation of Interactive Cobol for
our AViiON systems. The original compiler contained a simple
top-down recursive parser.
The main problems we ran into were not in creating a LALR
grammar, but with yacc limitations. The number of terminals, and
parser states had to be expanded. We also used lex, but replaced
the standard input() routines so that we could deal with continuation
lines and such.
I've requested permission to release our grammar, but so far
John Hassey hassey@dg-rtp.DG.COM or ...!mcnc!rti!xyzzy!hassey
Data General Corp. Research Triangle Park NC, 27709
Return to the
Search the comp.compilers archives again.