A native TypeScript runtime that compiles TypeScript directly to assembly.
- Compile TypeScript to native assembly
- Generate optimized machine code
- Simple CLI interface
- Full TypeScript type checking
- Lightweight and fast compilation pipeline
# Clone the repository
git clone git@github.com:dev-kas/ExaScript.git
export PATH="$(pwd)/node_modules/.bin:$PATH"
# Install dependencies
npm install
# Build the project
npm run build
# Compile a TypeScript file to assembly
exac compile input.ts -o output.asm
# Compile and assemble to an executable
exac build input.ts -o program
src/
├── compiler/ # TypeScript to AST transformation
├── codegen/ # Assembly code generation
├── runtime/ # Runtime support library
├── cli.ts # Command-line interface
└── index.ts # Main entry point
# Run in development mode
npm run dev
# Run tests
npm test
# Lint code
npm run lint
# Format code
npm run format
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.