Skip to content

stadlerb/cobol85grammar

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobol85grammar

Cobol 85 Grammar for ANTLR4

This is an approximate grammar for Cobol 85. It is akin but neither copied from nor identical to Cobol.jj, Cobol.kg and VS COBOL II grammars. Tested against the NIST test suite.

Characteristics:

  1. Passes the NIST tests.

  2. To be used in conjunction with the provided preprocessor, which executes COPY and REPLACE statements.

Known limitations (work under progress):

  1. Picture strings are parsed as (groups of) terminal symbols.

  2. Comments are skipped.

Build process:

  • The build process is based on Maven.
  • The test suite executes tests against NIST, CICS and some GPLed Cobol test files.
  • NIST test files come from Koopa repo.

Release process:

VM Args

  • For parsing large Cobol source code files, VM args have to be set: -Xmx2048m -XX:MaxPermSize=256m
  • Intellij Plugin for ANTLR 4 has to be provided with those VM args in file idea.vmoptions.

About

An ANTLR4 grammar for Cobol 85

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • COBOL 98.6%
  • Java 1.2%
  • ANTLR 0.2%