@bantohq/compiler
v0.2.0
Published
Compiler for the Banto DSL: turns a `.banto` project into the compiled `game.json` intermediate representation used by [banto.tv](https://banto.tv).
Readme
@bantohq/compiler
Compiler for the Banto DSL: turns a .banto project into the compiled
game.json intermediate representation used by banto.tv.
Most authors don't need this package directly — the
@bantohq/cli banto build
command uses it under the hood. Reach for it when you want to compile Banto
sources programmatically or from your own tooling.
npm install @bantohq/compilerProgrammatic use
import { compileProject } from "@bantohq/compiler";
const result = compileProject(/* project sources */);
// result contains the compiled IR (game.json) and any diagnosticsIt also ships a banto-compile binary for one-off compilation.
