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
priority:p2Normal - queue itscope:repoConfined to this repositorystatus:readyFully specified and ready to be picked uptech-debtKnown shortcut, drift, or hygiene owed - includes cleanup
Prove two parser properties for lib/parse.ml (Menhir-generated, see also ADR-009 + ADR-012):
Spec conformance: every example program in docs/spec.md (and the related grammar specs in docs/grammar/*.adoc) parses, and produces an AST whose pretty-printed re-parse is identical (modulo whitespace).
Conflict-resolution stability: every Menhir shift/reduce + reduce/reduce conflict (66 + 7 today, per the build output) is resolved in the documented direction (ADR-012); the test re-asserts the resolution on every build.
Concretely
Property test:
forall e in spec_examples ++ test/golden/.let ast = parse e inlet e' = pretty_print ast inlet ast' = parse e' in
ast = ast' (* parse-pretty-parse identity *)
Mechanisation
Property tests + a small CLI tool that diffs Menhir's conflict report against a checked-in docs/grammar/CONFLICTS.expected snapshot. Target: test/test_parser_conformance.ml.
Size
M. Estimate: 1 week. The hard part is the conflict-report stability — Menhir's diagnostic output formatting changes across versions.
Recent context
test/test_main.ml:10 has a disabled Test_parser.tests line with comment "TODO: Re-enable when test_parser is implemented". This issue is that test_parser module — once filed, the disable line can be removed alongside the implementation PR.
Status
NOT STARTED (but Test_parser module pre-existed as a TODO; unblock alongside).
priority:p2Normal - queue itscope:repoConfined to this repositorystatus:readyFully specified and ready to be picked uptech-debtKnown shortcut, drift, or hygiene owed - includes cleanup
Activity