@kawaijs/ast 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# @kawaijs/ast
|
|
2
|
+
|
|
3
|
+
**Abstract Syntax Tree (AST) and Story Intermediate Representation (IR) type definitions for Kawaijs.**
|
|
4
|
+
|
|
5
|
+
Part of the [Kawaijs](https://github.com/biagio-scaglia/KawaiJS) visual novel engine.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @kawaijs/ast
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
- Pure, zero-dependency TypeScript definitions.
|
|
15
|
+
- Discriminated union types for all Kawa Script syntax nodes (`StatementNode`, `DialogueStmtNode`, `MenuStmtNode`, etc.).
|
|
16
|
+
- Serialized Story IR instruction formats (`StoryPackage`, `Instruction`) with source location tracking (`SourceLocation`).
|
|
17
|
+
|
|
18
|
+
## License
|
|
19
|
+
MIT © Biagio Scaglia
|