Java Cobol Lexer is a library that takes a Cobol source program and return it as a list of lexical tokens. You can use it, for example, as part of a Cobol compiler, pre-processor, pretty formatter, static code checker, or syntax highlighter. The library accepts source code in fixed, free, and mixed formats. It processes standard Cobol 85.
gradle-sablecc-plugin is a gradle plugin which creates parsers using SableCC. SableCC supports automatic CST-to-AST transformation, emits all the visitor patterns and analysis helpers you will likely ever need, and is LR, not LL(k). Many example grammars are available for modern languages; the author of this plugin has written dozens.