Step 151: add Go parser and generator

This commit is contained in:
Bill
2026-02-09 19:08:42 -07:00
parent 7ef0c4a8ad
commit b4cf14f3ae
12 changed files with 1159 additions and 3 deletions

View File

@@ -53,6 +53,9 @@ public:
} else if (language_ == "rust") {
RustGenerator gen;
return gen.generate(module_.get());
} else if (language_ == "go") {
GoGenerator gen;
return gen.generate(module_.get());
}
return text_;
}
@@ -73,6 +76,8 @@ public:
module_ = TreeSitterParser::parseJava(text_);
} else if (language_ == "rust") {
module_ = TreeSitterParser::parseRust(text_);
} else if (language_ == "go") {
module_ = TreeSitterParser::parseGo(text_);
}
parsePending_ = false;
}