refactor(parser): use one rule for every glued parenthesis #171

Merged
abiwab merged 1 commit from refactor/one-parenthesis-rule into dev/1.5 2026-11-17 00:04:49 +01:00
Owner

Why

Since #170 (merged from main into dev/1.5), preparation ends on its line, exactly like gluedNote, the rule added by #169 for the temperature notes. The two rules had the same body.

Change

  • grammar.ohm: gluedNote is gone; temperature uses preparation?, like ingredients, composite parents and cookware. The comment on preparation now 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: the gluedNote action is removed; the temperature action is unchanged (preparation already returns the cleaned text).
  • The AST field of a temperature stays note: the rule name does not leak anywhere.

Checks

  • bun run build, bun test: 3228 pass.
  • bun run conformance: 122 cases, no golden changed.
  • No changeset: gluedNote was never released and nothing changes for users.
## Why Since #170 (merged from `main` into `dev/1.5`), `preparation` ends on its line, exactly like `gluedNote`, the rule added by #169 for the temperature notes. The two rules had the same body. ## Change - `grammar.ohm`: `gluedNote` is gone; `temperature` uses `preparation?`, like ingredients, composite parents and cookware. The comment on `preparation` now 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`: the `gluedNote` action is removed; the `temperature` action is unchanged (`preparation` already returns the cleaned text). - The AST field of a temperature stays `note`: the rule name does not leak anywhere. ## Checks - `bun run build`, `bun test`: 3228 pass. - `bun run conformance`: 122 cases, no golden changed. - No changeset: `gluedNote` was never released and nothing changes for users.
refactor(parser): use one rule for every glued parenthesis
All checks were successful
CI / Build & Test (pull_request) Successful in 3m49s
b80ad45611
abiwab merged commit ac3981aa3d into dev/1.5 2026-11-17 00:04:49 +01:00
abiwab deleted branch refactor/one-parenthesis-rule 2026-11-17 00:04:50 +01:00
Sign in to join this conversation.
No description provided.