You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
det translator: re-wrap joined continuation lines to fixed form in det/source.as_fixed (recovers most parse failures) #4412
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
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
as_fixed emits proper fixed form for joined continuations; layout._txt strips continuation markers; source-row mapping kept.
Parse-rate regression test on the bake-off corpus (or a representative subset), and all existing ports re-prove unchanged.
bugUnintended behavior or logic failure in the enginelegacy-modernizationCOBOL refractor, dead-code extraction, and JCL forgingpriority: highCore feature broken, but workarounds existscope:coreBlocks a burned-estate program's next evidence rung, or the 4th-estate one-shot trial
Activity
Merge origin/main into fix/4412-det-rewrap (after #4432 and #4430)
fix(det): re-wrap joined continuation lines to fixed form for the par…