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 buildRun compiler tests:
yarn testHost the website locally and watch for changes (with live reload):
yarn startCompile the website for production:
yarn bundleFor 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 upgradesrc: Compiler source code__tests__: Compiler testsweb: Website source code