Pages

Friday, October 24, 2025

Recursive Production Grammar

Recursive Grammar — Micro Edition (Start/Options Fix)

Recursive Grammar — Micro Edition

Configurable start · Optional supplement · Optional polish
Grammar Scripting

• Rule: A -> B C "word" (Uppercase = nonterminal; quoted = terminal).
• Alternatives: | (quote/brace aware). Weights: {p=2.5}.
• Repetition: SSS expands to S S S.
• Start symbol: first LHS by default, or declare %start Sentence (anywhere).
• Supplement: when ON, if a run becomes terminal before N steps, a fresh <Start> is injected so you still get N rewrites. Turn OFF to stop the extra <S> lines.
• Polish: when ON, outputs are auto-capitalized and end with a period (unless parens-only). Turn OFF for raw tokens.
Tip: %start X or first rule’s LHS defines Start
No file
Drag & drop onto the editor to load.

Steps Steps: 0
Last: -

No comments:

Post a Comment