Skip to content

sgrowe/compiler-in-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Sam Rowe
Nov 30, 2022
96ff325 · Nov 30, 2022
Feb 21, 2020
Nov 30, 2022
Feb 3, 2020
May 4, 2021
May 4, 2021
May 11, 2021
Sep 4, 2020
Feb 10, 2020
May 4, 2021
May 4, 2021
May 21, 2020

Repository files navigation

A really hacky attempt at a compiler written in Rust

This is a WIP attempt at creating a new programming language that compiles down to WASM, with the compiler written in Rust.

To have a look at what the syntax for the language looks like currently have a look in the compiler-core/src/fixtures folder.

Goals

  • For me to learn more Rust and other stuff
  • Tiny generated bundle size
  • Greatly simplified tooling set up

Why not compile Rust to WASM

  • Higher level than Rust
  • Slow Rust compile times
  • Getting small bundle sizes with Rust takes a fair bit of effort