Skip to main content

Module emit

Module emit 

Source
Expand description

Emitters for external grammar definition formats.

Structs§

EmitReport
Non-fatal fidelity notes collected while emitting a grammar.
JsParserArtifacts
Bundled JavaScript parser codegen output.
RustParserArtifacts
Bundled Rust parser codegen output.

Enums§

GrammarEmitError
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.js module from the grammar IR.
emit_tree_sitter_grammar_js_with_report
Emits a tree-sitter grammar.js module and a fidelity report.
render_rust_type
Renders a RustTypeShape as a Rust declaration.