uwol / proleap-cobol-parser

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

Errors in parsing CALL statement #11

Closed albertolovato closed 6 years ago

albertolovato commented 7 years ago

All errors refer to the last line

            CALL "C$TOUPPER"
               USING TEXT-VALUE-2
               BY VALUE
               LENGTH 1.

Error: line 128:22 missing OF at '1'

           CALL "C$JUSTIFY"
               USING TEXT-VALUE-2
               "C".

Error: line 131:15 no viable alternative at input 'TEXT-VALUE-2"C"'

           CALL "C$TOUPPER"
               USING TO-UPPER-CASE
               BY VALUE
               LENGTH TO-UPPER-CASE.

Error: line 144:22 missing OF at 'TO-UPPER-CASE'

uwol commented 6 years ago

Correct, the grammar did not cover certain call statement types. Fixed in 26b7fa341e407a5fca365f19b98d21d264521f0f. Added unit test.