re: yacc grammar for cobol

hassey@dg-rtp.dg.com (John Hassey)
Fri, 25 Jan 91 10:17:40 est

          From comp.compilers

Related articles
re: yacc grammar for cobol hassey@dg-rtp.dg.com (1991-01-25)
| List of all articles for this month |
Newsgroups: comp.compilers
From: hassey@dg-rtp.dg.com (John Hassey)
Keywords: cobol, parse, yacc
Organization: Compilers Central
References: <1991Jan22.142741.6471@informatik.uni-erlangen.de>
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
        no luck.




John Hassey hassey@dg-rtp.DG.COM or ...!mcnc!rti!xyzzy!hassey
Data General Corp. Research Triangle Park NC, 27709
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.