--- story: E00-S02 owner: e00-grammar-fixtures status: done started: 2026-11-07 depends-on: [E00-S01] --- # E00-S02 Claim ## Intended change Create accepted and rejected Nova128 grammar fixtures plus a coverage manifest and structural validator. This story adds no parser or compiler implementation. ## File area - `tests/grammar/` - `planning/claims/E00-S02.md` ## Acceptance evidence - [x] At least one accepted fixture covers every declaration and statement form. - [x] Rejected fixtures cover missing terminators, invalid line continuation, duplicate declarations, and malformed interface/class headers. - [x] Fixtures remain within the editor source profile. - [x] Expected symbolic diagnostic IDs are named. ## Coordination notes - E01-S01 is active in another file area. - Diagnostic IDs are symbolic placeholders for E02-S04; this story does not assign numeric values. ## Work log - Read canonical documents and compiler-design guidance. - Confirmed E00-S01 is complete and no grammar claim exists. - Added seven accepted fixtures and eleven rejected fixtures with diagnostic sidecars. - Added a production/statement coverage matrix and structural validator. ## Completion - Tests run: `powershell -NoProfile -ExecutionPolicy Bypass -File tests/grammar/validate.ps1` - Results: `grammar fixtures ok: 7 accepted, 11 rejected`; longest source line is 59 bytes and every fixture is below all editor-profile limits. - Files changed: `tests/grammar/**`, `planning/claims/E00-S02.md` - Remaining risks: numeric diagnostic assignments belong to E02-S04; these fixtures intentionally specify symbolic IDs only. Parser execution evidence cannot exist until the parser stories are implemented.