TypeCobol
TypeCobol copied to clipboard
Non-reserved keywords
Describe the bug Some of the keywords reserved by our parser are actually not reserved words in Cobol and can be used as identifiers.
To Reproduce (Type)Cobol code that cause the bug : (if any)
IDENTIFICATION DIVISION.
PROGRAM-ID. TCOFM117.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 process PIC X.
END PROGRAM TCOFM117.
Expected behavior No errors. The data item 'process' is valid.
Technical
- Identify all keywords that should be delisted
- Assess impact on following steps 💀
-
PROCESS
is a preprocessing keyword in our parser. All keywords recognized byCobolCompilerDirectives.cup
are potentially non-reserved since in Cobol compilation they are recognized before scanning for actual tokens.
How to test automatically TODO - depending on modifications done