Expand description
Emitters for external grammar definition formats.
Structs§
- Emit
Report - Non-fatal fidelity notes collected while emitting a grammar.
- JsParser
Artifacts - Bundled JavaScript parser codegen output.
- Rust
Parser Artifacts - Bundled Rust parser codegen output.
Enums§
- Grammar
Emit Error - Error raised while emitting an external grammar notation.
Functions§
- emit_
abnf - Emits Augmented Backus-Naur Form text from the grammar IR.
- emit_
bnf - Emits classic Backus-Naur Form text from the grammar IR.
- emit_
ebnf - Emits ISO/IEC 14977-style Extended Backus-Naur Form text from the grammar IR.
- emit_
gbnf - Emits GGML BNF text for grammar-constrained LLM decoding.
- emit_
javascript_ parser - Emits a runnable JavaScript parser bundle from the grammar IR.
- emit_
peggy - Emits Peggy PEG grammar text from the grammar IR.
- emit_
pest - Emits pest PEG grammar text from the grammar IR.
- emit_
rust_ parser - Emits a runnable Rust parser bundle from the grammar IR.
- emit_
tree_ sitter_ grammar_ js - Emits a tree-sitter
grammar.jsmodule from the grammar IR. - emit_
tree_ sitter_ grammar_ js_ with_ report - Emits a tree-sitter
grammar.jsmodule and a fidelity report. - render_
rust_ type - Renders a
RustTypeShapeas a Rust declaration.