We are trying to parse Cobol sources.
We have a number of parsing issues; I will first post one, to check for your response.
Dependent on the feedback I will then post the rest.
First issue: Parsing error on JUSTIFIED clause in DISPLAY statement.
Java: 184.108.40.206 Red Hat, Inc. (64-bit)
Linux: 3.10.0-1160.80.1.el7.x86_64 amd64
Cobol: AcuCobol version 10.2.1
SonarQube: Enterprise Edition Version 9.6.1 (build 59531)
– extract from the parser logging –
ERROR: Unable to parse COBOL source file : /build/builds/_NwxSV3v/0/dataserver-utilities/tdeltaplayground/sonar-parse-errors/cobol-src/source/PP0030 at line 7
Original contents starting from line 1 till line 8:
01 VARIABLE PIC X(20).
* The ‘JUSTIFIED (RIGHT)’ causes the parsing to fail:
DISPLAY VARIABLE JUSTIFIED RIGHT
Parse error at line 7:
1: IDENTIFICATION DIVISION . 2: PROGRAM-ID . PP0030 . 3: WORKING-STORAGE SECTION . 4: 01 VARIABLE PIC X ( 20 ) . 5: PROCEDURE DIVISION . 7: DISPLAY VARIABLE JUSTIFIED RIGHT ^ 8: GOBACK . 9: EOF
Compilation of this code is successfull.
Please take care of this issue.
Also please provide feedback on any info missing in the topic, as I have 18 more coming, and I want to do those as best I can.