yeast: Support separate output node types in extractor generator

Language and LanguageSpec gain optional output_node_types field.
When set, the generator produces dbscheme/QL from the output types
and the extractor validates TRAP against them.

All existing extractors pass None (no behavior change).
Ruby extract() calls gain vec![] for the new rules parameter.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Taus
2026-05-04 13:27:00 +00:00
parent 9ad431dea1
commit 82bbdee832
4 changed files with 26 additions and 1 deletions

View File

@@ -21,10 +21,12 @@ pub fn run(options: Options) -> std::io::Result<()> {
Language {
name: "Ruby".to_owned(),
node_types: tree_sitter_ruby::NODE_TYPES,
desugar: None,
},
Language {
name: "Erb".to_owned(),
node_types: tree_sitter_embedded_template::NODE_TYPES,
desugar: None,
},
];