Getting Started
Introduction
Any language in, any language out — what GSET is today and where it is headed.
GSET (Generic Syntax Extension Tool) is a single-binary transpiler written in Rust. It uses tree-sitter grammars to parse real languages into a shared, typed intermediate representation, then emits a complete runnable file for a target language.
Version: 3.5.0.
What GSET actually does
- Parses a source file with a tree-sitter grammar (Python today).
- Lowers it to a typed IR — every node carries a source span and a (possibly
Unknown) type. - Runs a semantic pass — lexical scope resolution and conservative type inference.
- Emits a complete file for the target backend (Go today).
- Runs the output with the target's toolchain (
go run), or prints it withgset transpile.
There is no VM. The output is real source code in the target language, executed by the target's own runtime.
What GSET is today
- Five Backends (M2 completed): JavaScript/TypeScript frontend, all five backends (Go, Python, JavaScript, Java, Ruby), and the corpus-wide syntax-check gate.
- A typed IR instead of a hand-written AST. Imports are first-class IR items, backends declare a capability matrix instead of silently dropping constructs, and a
CodeWriterowns indentation. - No configuration file yet. The Go-era
gset.confwas deleted. Agset.tomlis planned (default target, interpreter paths, project root, dependency search roots) but nothing is implemented today.
What comes next
The roadmap follows the engineering plan in docs/RUST_REWRITE_PLAN.md:
- M3–M5: more frontends (Go, Java, Ruby, C/C++, Rust), local project graphs, and ecosystem dependency resolution.
- M6: cutover — packaging, docs, and the final deletion of the Go tree.