refactor(parser): use one rule for every glued parenthesis #171
No reviewers
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram!171
Loading…
Reference in a new issue
No description provided.
Delete branch "refactor/one-parenthesis-rule"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
Since #170 (merged from
mainintodev/1.5),preparationends on its line, exactly likegluedNote, the rule added by #169 for the temperature notes. The two rules had the same body.Change
grammar.ohm:gluedNoteis gone;temperatureusespreparation?, like ingredients, composite parents and cookware. The comment onpreparationnow covers every use: the parenthesis glued to an element (every rule using it is lexical), on one line, also meant for the sensory checkpoints to come.src/index.ts: thegluedNoteaction is removed; thetemperatureaction is unchanged (preparationalready returns the cleaned text).note: the rule name does not leak anywhere.Checks
bun run build,bun test: 3228 pass.bun run conformance: 122 cases, no golden changed.gluedNotewas never released and nothing changes for users.