TypeCobol icon indicating copy to clipboard operation
TypeCobol copied to clipboard

Non-reserved keywords

Open fm-117 opened this issue 1 year ago • 1 comments

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 by CobolCompilerDirectives.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

fm-117 avatar May 19 '23 15:05 fm-117