mirror of
https://github.com/mermaid-js/mermaid.git
synced 2026-05-23 20:10:38 +00:00
4f2e1abe1e
Change the railroad diagram input from EBNF grammar notation to an explicit IR that directly describes layout primitives: sequence(), choice(), optional(), oneOrMore(), zeroOrMore(), terminal(), nonterminal(), and special(). This separates the concern of grammar notation parsing from diagram layout, enabling grammar-specific front-ends (EBNF, ABNF, PEG) to be layered on top as independent modules.