uwol / proleap-cobol-parser

ProLeap ANTLR4-based parser for COBOL
MIT License
136 stars 74 forks source link

Data description entry not parsed correctly #36

Closed albertolovato closed 6 years ago

albertolovato commented 6 years ago

In parsing the following code, taken from cobol-unit-test, the DataDescriptionEntry corresponding to BINARY has getName() that returns null.

   01  BINARY.
       05  THE-REMAINDER      PIC S9(4).
       05  THE-QUOTIENT       PIC S9(4).
       05  THE-DIVISOR        PIC S9(4).
       05  OFFSET             PIC S9(4).
uwol commented 6 years ago

Thanks, you found a bug! Fixed in 97a88d2f5e93dba119e4588deba12c754430a49b