@archstep/compiler
v0.1.0
Published
Step language compiler — lexer, parser, semantic validation, and IR emitter for ArchStep.
Maintainers
Readme
@archstep/compiler
Lexer, parser, semantic validation, and IR emitter for Step — the text DSL behind ArchStep.
npm install @archstep/compilerimport { compile } from "@archstep/compiler";
const result = compile(`
architecture {
service User at (0, 0)
service API at (200, 0)
}
scenario Checkout {
User -> API: "place order"
}
`);
if (result.ok) {
console.log(result.ir); // { architecture, scenarios }
} else {
console.error(result.errors); // [{ message, line }]
}Part of the ArchStep monorepo — see the main README
for the full pipeline (@archstep/runtime for playback timelines, @archstep/player for the
animated renderer) and the language docs.
