The new bnf
environment provides a more flexible environment to typeset BNF grammars, without sacrificing the simple DSL used for the (now deprecated) bnfgrammar
environment.
This new version provides
- a DSL more tolerable than the previous version, e.g., it now accepts trailing delimiters (
;;
), leading alternative delimiter (|
), etc; - flexible configuration, e.g., custom delimiters and symbols;
- more helpful error/warning messages;
- the backend as the
tabularray
package; and - (hopefully) a more descriptive manual.