org.openrewrite:cobol-cli

A version of the Moderne CLI specialized for parsing COBOL LSTs.


License
Apache-2.0

Documentation

OpenRewrite Logo

rewrite-cobol

ci Maven Central

What is this?

This project implements a Rewrite module that provides parsers, visitors, and recipes for COBOL and related mainframe technologies. It supports parsing and transforming COBOL source code, JCL (Job Control Language), and Control-M job definitions.

Language Support

  • COBOL — Full parsing of COBOL-85 (IBM ANSI 85 and HP Tandem dialects), including preprocessor directives (COPY, REPLACE) and copybook resolution
  • JCL — Job Control Language parsing (.jcl, .prc files)
  • Control-M — Control-M job scheduling definition parsing

Recipes

  • Search — Find copybooks, words, indicators, references, and relationships across COBOL programs
  • Cleanup — Remove debugging mode from SOURCE-COMPUTER paragraphs
  • Format — Remove words and shift sequence areas

Contributing

We appreciate all types of contributions. See the contributing guide for detailed instructions on how to get started.

Licensing

This is a Moderne proprietary module available only for use by Moderne customers under the terms of a commercial contract.

For more information about licensing, please contact Moderne.