@kawaijs/ast
v1.0.0
Published
Abstract Syntax Tree and Story Intermediate Representation definitions for Kawaijs
Downloads
2,707
Maintainers
Readme
@kawaijs/ast
Abstract Syntax Tree (AST) and Story Intermediate Representation (IR) type definitions for Kawaijs.
Part of the Kawaijs visual novel engine.
Installation
npm install @kawaijs/astFeatures
- Pure, zero-dependency TypeScript definitions.
- Discriminated union types for all Kawa Script syntax nodes (
StatementNode,DialogueStmtNode,MenuStmtNode, etc.). - Serialized Story IR instruction formats (
StoryPackage,Instruction) with source location tracking (SourceLocation).
License
MIT © Biagio Scaglia
