Re: Request: COBOL grammar in ANTLR

grosch@karlsruhe.gmd.de (Josef Grosch %Dec95%)
Tue, 21 Sep 1993 10:29:29 GMT

          From comp.compilers

Related articles
Request: COBOL grammar in ANTLR joiner@pico.cs.umn.edu (1993-09-09)
Re: Request: COBOL grammar in ANTLR grosch@karlsruhe.gmd.de (1993-09-21)
Re: Request: COBOL grammar in ANTLR foerster@batgirl.rtp.dg.com (1993-09-21)
| List of all articles for this month |
Newsgroups: comp.compilers
From: grosch@karlsruhe.gmd.de (Josef Grosch %Dec95%)
Keywords: Cobol, parse
Organization: GMD Forschungsstelle Karlsruhe
References: 93-09-048
Date: Tue, 21 Sep 1993 10:29:29 GMT

joiner@pico.cs.umn.edu (Jay K. Joiner) writes:
>Request pointers for a grammar for COBOL (full language) for the
>ANTLR compiler-compiler of the Purdue Compiler Construction Tool Set?


I have something similar: A grammar for COBOL for the parser generator LALR
of Cocktail, the Karlsruhe Compiler Construction Tool Box. It is not for free.


And our moderator added:
>[ ... I'd think it'd be straightforward but tedious to
>create one. The enormous set of reserved words blows away a lot of parser
>generators. -John]


In my experience it is much more than tedious. It took me several weeks to
resolve all the ambiguities and the LR conflicts contained in the language
standard. The resulting grammar is still LR(2).


Josef Grosch
grosch@karlsruhe.gmd.de
--


Post a followup to this message

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