Simple programming language that compiles to WebAssembly, written in TypeScript.
Based off Colin Eberhardt's blog post on writing a WebAssembly compiler, written using up-to-date versions of TypeScript and Node. Information about the language is provided in the language playground linked above.
The aim of this project was to learn about compilers, TypeScript, and front-end development.
Build compiler:
yarn build
Run compiler tests:
yarn test
Host the website locally and watch for changes (with live reload):
yarn start
Compile the website for production:
yarn bundle
For automated pre-commit/pre-push checks, a Lefthook script is included. Run lefthook install
to initialize it.
The GitHub Pages website is deployed off the gh-pages
branch. This is automatically done by CI when code pushed to the main
branch has been successfully compiled and tested.
yarn upgrade
src
: Compiler source code__tests__
: Compiler testsweb
: Website source code