Skip to content

Data Checkpoint Progress #1

Description

@Victor-Adrian

✅ Completed (9 XP)

  • Implemented IdentificationDivisionVisitor & DataDivisionVisitor covering points 1–5
  • Enforced data-level hierarchy (no invalid nesting, e.g. level 02 under level 05)
  • Validated elementary vs. group: entries with PICTURE IS or LIKE cannot have children
  • PICTURE clause validator enforcing:
    -- Only 9/A/X/Z accept repeats; at most one S and one V
    -- Non-empty integer/fractional parts; correct Z-vs-9 ordering; numeric vs. alphanumeric categories, etc.
  • Resolved all LIKE references by cloning the target’s type descriptor (cardinality reset to 1)

🕓 Remaining Work

  • Check if we need to account for COPY statements in the IDENTIFICATION and DATA Divisions at this level, and how.
  • Complete the rest of the checkpoint items (Figurative constants, semantic parsing & defaults, and maaaaaybe MOVE planned by Victor to implement on 13/05)
  • After the things above (fingers crossed I do them on Tuesday) we only have non-reserved keywords and contracted expressions left

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions