uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
137 stars 76 forks source link

* CREATED DATE.. : 2007/08/05 * #99

Open R1310328554 opened 11 months ago

R1310328554 commented 11 months ago

I have bellow statement:

  DATA DIVISION.
   WORKING-STORAGE SECTION.
  *****************************************************************
  *  COPYBOOK SPECIFICATION                                       *
  *---------------------------------------------------------------*
  *  COPYBOOK NAME. : SCCTRC2                                     *
  *  DESCRIPTION... : WRITE TRACE TEXT                            *
  *  LENGTH........ :                                             *
  *  AUTHOR........ : DEVIBS                                      *
  *  CREATED DATE.. : 2007/08/05                                  *
  *  VERSION NO.... : 1.0.0                                       *
  *****************************************************************

but i got the following error when parse the cobol .it seems that the lines start from "CREATED DATE." are not supported.

io.proleap.cobol.asg.exception.CobolParserException: syntax error in line 141:6 mismatched input '>CE CREATED DATE.. : 2007/08/05 ' expecting {, COMMUNICATION, DATA_BASE, END, FILE, ID, IDENTIFICATION, LINKAGE, LOCAL_STORAGE, PROCEDURE, PROGRAM_LIBRARY, REPORT, SCREEN, WORKING_STORAGE, '66', '77', '88', INTEGERLITERAL, EXECSQLLINE}

at io.proleap.cobol.asg.runner.ThrowingErrorListener.syntaxError(ThrowingErrorListener.java:22)
at org.antlr.v4.runtime.ProxyErrorListener.syntaxError(ProxyErrorListener.java:41)
at org.antlr.v4.runtime.Parser.notifyErrorListeners(Parser.java:544)

thx。