Skip to main content

emit_tree_sitter_grammar_js

Function emit_tree_sitter_grammar_js 

Source
pub fn emit_tree_sitter_grammar_js(
    grammar: &Grammar,
) -> Result<String, GrammarEmitError>
Expand description

Emits a tree-sitter grammar.js module from the grammar IR.

This convenience API returns only the JavaScript source. Use emit_tree_sitter_grammar_js_with_report when callers need fidelity notes for lossy IR-to-tree-sitter mappings.