pub fn emit_tree_sitter_grammar_js_with_report(
grammar: &Grammar,
) -> Result<(String, EmitReport), GrammarEmitError>Expand description
Emits a tree-sitter grammar.js module and a fidelity report.
tree-sitter maps CFG-shaped IR constructs directly with seq, choice,
repeat, repeat1, optional, token, field, alias, and prec.
Ordered choices are emitted as tree-sitter’s unordered GLR choice, counted
repetition is desugared, and syntactic predicates return
GrammarEmitError::Unsupported because tree-sitter has no predicate DSL.