Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#22 Parsing: Missing data types

v1.0 (example)
open
nobody
None
5
2013-08-13
2013-08-02
Simon Sobisch
No

At least binary-long should be fixed in [r118], didn't checked the fix yet

  • 2002 standard: use of "constant"
  • 2002 standard: use of new data types that don't need (aren't allowed to have) a picture clause (full list of usage: binary-char, binary-short, binary-long, binary-double, float-short, float-long, float-extended, index, object reference, pointer, program-
    pointer)
  • as a common extension: data types that don't need (aren't allowed to have) a picture clause: BINARY-C-LONG, SIGNED-INT, UNSIGNED-INT, SIGNED-LONG, UNSIGNED-LONG, SIGNED-SHORT, UNSIGNED-SHORT
  • COMP-X data type (a common extension [simply parse like other COMP types - needs picture clause])

Related

Commit: [r118]
Discussion: Missing Support for COBOL 2002 (level 78, EXIT SECTION/PERFORM, length of section names, BASED/ALLOCATE/FREE)

Discussion

  • Simon Sobisch
    Simon Sobisch
    2013-08-12

    Rechecked with [r140] - everything above is accepted, despite of "constant" (doesn't work the way it's implemented in the grammar). Not sure if everything is checked in the test suite (especially the part "usages that aren't allowed to have a picture clause").

     

    Related

    Commit: [r140]

  • KrisDS
    KrisDS
    2013-08-13

    Indeed, the "not allowed" checks are still missing.