The core package provides the foundational referencing implementation for the A22 Language, a functional, declarative language for building deterministic agentic systems.
- Lexer: Tokenizes A22 source code.
- Parser: Generates a strongly-typed Abstract Syntax Tree (AST).
- Validator: Semantic analysis and validation of key language rules.
- Transpiler: Converts AST to a standard JSON Intermediate Representation (IR).
- CLI: A command-line tool
a22for compiling and checking files.
npm install
npm run buildnode dist/index.js compile <file.a22>src/lexer.ts: Token definitions and tokenizer.src/parser.ts: Recursive descent parser.src/ast.ts: TypeScript interfaces for the AST.src/validator.ts: Semantic validation logic.src/index.ts: CLI entry point.