TypeCobol
TypeCobol copied to clipboard
Copy replacing : accept no space after closing pseudo text delimiter
Describe the bug
Our parser require characters ' '
, ','
, ';'
or '.'
after the closing pseudo text delimiter.
IBM compiler accept that there the keyword BY
is just after the pseudo text delimiter.
To Reproduce Cobol code that cause the bug :
IDENTIFICATION DIVISION.
PROGRAM-ID. MyPGM.
data division.
working-storage section.
COPY YMYCOPY REPLACING ==:xxx:==BY==yyy==.
END PROGRAM MyPGM.
Expected behavior No error.
Technical See usage of MessageCode.InvalidCharAfterPseudoTextDelimiter.
How to test automatically Will be edited by a team member. Only if our current automated tests doesn't handle this.