uwol / proleap-cobol-parser

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

Failed to parse [XML GENERATE and JSON GENERATE] #106

Open arjun-ug opened 1 month ago

arjun-ug commented 1 month ago

First of all, thank you for the amazing work on this library.

I was trying to parse a code base and it failed to parse COBOL files that had XML GENERATE. Example below. There are instances of JSON GENERATE as well. Any help to get past this is appreciated.

             XML GENERATE WS-BUFFER-OUT
             FROM Claims COUNT IN WS-LENGTH-NUM
                ON EXCEPTION
                   DISPLAY '****************************************'
                   DISPLAY '***** XML GENERATION ERROR ' XML-CODE
                   DISPLAY '***** KEY REF-NBR: ' TCWOAGTP-REF-NBR
                   DISPLAY '****************************************'
                NOT ON EXCEPTION
                   CONTINUE
           END-XML
Reinhard2500 commented 1 month ago

Well, we are talking about cobol 85 and rather Not any Extensions like XML etc.