kou icon indicating copy to clipboard operation
kou copied to clipboard

A minimal language compiled into wasm bytecode

kou

A minimal language compiled into wasm bytecode

npm Travis code style: prettier

Language specification

Please refer to SPEC.md.

Demonstration

asciicast

Milestones

  • [x] Tokenizer
  • [x] Parser
  • [x] Desugarer
  • [x] Type checker
  • [x] Code generator for wasm
  • [ ] Module system
  • [ ] JS interop
  • [ ] IO
  • [ ] Bootstrapping

Install

npm i -g kou

Usage

Compile:

kouc hello.kou -o hello.wasm

# For the detailed usage
kouc --help

Run in CLI:

kou hello.wasm

# For the detailed usage
kou --help

Reference

License

MIT