Skip to content

det translator: re-wrap joined continuation lines to fixed form in det/source.as_fixed (recovers most parse failures) #4412

Closed

Description

@squid-protocol

Problem

det/source.as_fixed joins continuation lines and leaves the joined text running past column 72. The tree-sitter COBOL grammar then fails on those programs.

The #4378 bake-off (comment on #4378) measured whole-program parse success when the translator instead feeds the current grammar proper fixed form:

corpus today with re-wrap
ported (54) 54 54 (byte-identical parser input; no ported program has a line past col 72)
unported (149) 119 131
NIST CCVS85 (150) 39 142

All 355 re-wrapped VALUE literals decode verbatim. Layouts match today's translator wherever today's parses. About 30 lines: the re-wrap in as_fixed, stripping continuation markers in layout._txt, and a row map in stmt.origin. Single-quoted continued literals still fail (CardDemo CBSTM03A); that is a separate shape.

Acceptance criteria

Measurement tooling: /srv/storage_16tb/projects/gitgalaxy/bakeoff/ (local). Related: #4378, #4273.

Activity

  1. added
    bug
    legacy-modernization
    priority: high
    on Oct 5, 2026
  2. added
    scope:core
    on Oct 16, 2026
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

    buglegacy-modernizationpriority: highscope:core

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions