mykovalenko / legstar-cob2xsd

Automatically exported from code.google.com/p/legstar-cob2xsd
Other
0 stars 0 forks source link

Need to support COBOL identifiers starting with digits #23

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Structures such as:
       01  5500-REC-01.                   
          05 5500-REC-TYPE      PIC X(01).
          05 5500-PLAN-NUM      PIC X(06).
are valid.
Currently, the ANTLR lexer rule used is:
    DATA_NAME
        : LETTER (LETTER|'0'..'9'|'-')*
which is too restrictive.
In addition the latest Enterprise COBOL for z/OS (V4R2) also accepts 
underscores.

Original issue reported on code.google.com by fady.mou...@gmail.com on 11 Dec 2009 at 10:53

GoogleCodeExporter commented 9 years ago

Original comment by fady.mou...@gmail.com on 14 Dec 2009 at 10:58