This is the API specification for version 1.0 of the jCobolLexer.

Description

jCobolLexer is a Cobol 85 X3.23-1985 lexer written in Java and distributed as a .jar library for use in other applications.

Use

You have a Cobol source program (program.cbl) you want to parse:

            Reader reader = new FileReader("program.cbl");
            CobolLexer cardReader = new CobolLexer(reader);
            TokenList tokens = cardReader.getTokens();
      
The tokens object contains the entire source program parsed as a list of CobolToken objects.

A CobolToken object gives you:

To do

Process COPY and REPLACE instructions.