Skip to content

Commit bfea9a0

Browse files
respencer-nclclaude
andcommitted
Confirm metadata with-block requirement already enforced
Verified fastparse parser correctly requires with { } wrapper for metadata: - Rejects bare metadata after closing brace - Rejects metadata inside definition body - Accepts only proper with { briefly "..." } syntax Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c312fcc commit bfea9a0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

NOTEBOOK.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ The `pseudoCodeBlock` parser now allows comments before and/or after `???`:
158158

159159
**Test Results**: All 715 tests pass across all modules
160160

161+
**Task #10 Verification** (metadata with-block requirement):
162+
- Confirmed fastparse already correctly enforces `with { }` wrapper for metadata
163+
- `} briefly "..."` (after close, no with) → Rejected ✅
164+
- `{ briefly "..." }` (inside body) → Rejected ✅
165+
- `} with { briefly "..." }` (correct syntax) → Accepted ✅
166+
- No code changes needed - task was already satisfied
167+
161168
**Files Modified**:
162169
- `language/shared/src/main/resources/riddl/grammar/ebnf-grammar.ebnf`
163170
- `language/shared/src/main/scala/com/ossuminc/riddl/language/parsing/TypeParser.scala`

0 commit comments

Comments
 (0)