Skip to content

dev-kas/ExaScript

Repository files navigation

ExaScript

A native TypeScript runtime that compiles TypeScript directly to assembly.

🚀 Features

  • Compile TypeScript to native assembly
  • Generate optimized machine code
  • Simple CLI interface
  • Full TypeScript type checking
  • Lightweight and fast compilation pipeline

📦 Installation

# 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

🛠️ Usage

# 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

🏗️ Project Structure

src/
  ├── compiler/     # TypeScript to AST transformation
  ├── codegen/      # Assembly code generation
  ├── runtime/      # Runtime support library
  ├── cli.ts        # Command-line interface
  └── index.ts      # Main entry point

📝 Development

# Run in development mode
npm run dev

# Run tests
npm test

# Lint code
npm run lint

# Format code
npm run format

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📜 License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published