Grammar dialect widened to hold the battle-tested patterns verbatim

↗ view on GitHub · Eli Ziff · 2026-07-29 · 9007fcfc

The ALR/engine citation grammars use fixed-width lookbehind
((?<![\w.]), (?<=[.!?])) and rf-string composition throughout, so a
dialect that bans lookbehind cannot take them without semantic
rewrites - exactly what must not happen. Lookbehind is now allowed
and the dual-runtime vector check is the gate: Python re only
compiles fixed-width, and a test proves a variable-width table fails
the round-trip while JS alone would have taken it. Tables gain defs
({{name}} fragments, fixpoint splicing, cycle-guarded, mirrored
byte-for-byte in the Python loader). The non-ASCII \uXXXX ban is
dropped - its premise measured false (Python re reads \uXXXX in
patterns); only JS-only \u{...} stays banned.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012AgUm5EcRKbT3duVFMbrQD
Repository eliziff/Beaver
Author Eli Ziff <eliasziff@gmail.com>
Authored
Parents f2490229
Stats 3 files changed , +176 , -24
Part of Deterministic legal-text tools ("SLA audit organs")

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-9007fcfc.md from inside the repo you want the change in.

⬇ Download capture-commit-9007fcfc.md