Here is a COBOL 85 grammar that I created in 1995 for a contract job:
This is an LR type of grammar as opposed to an LL type grammar and should work
find with the LRSTAR parser generator
The COBOL 85 language is LR(2) if you ignore the tokens: IS and ARE. Otherwise
the language is LR(3). LRSTAR should be able to handle LR(3) but I have not tested
this grammar, yet, to see if it successfully reads using the LR(3) option.
I did test it in 1995 with an LALR(1) parser generator and it was working fine, except
for the READ statement which is LALR(2).
ANTLR may have trouble with this grammar because it is an LR style grammar (with
Let me know if you have any questions.