Rust Compiler

11/17/2025 (github)

If you'd like a straight readme, go to the github link. This post goes into more detail about the project, implementation, lessons learned, etc.

I did this project with 3 goals in mind:

I managed to do all three, but am moving on. Its easy to get carried away adding things I want in my language without actually learning anything new.

Basic project overview:

  1. Lexer
  2. Create function symbol map
  3. Build AST
  4. Resolve expression types / semantic analysis (yes this is done in the same step)
  5. Generate c code
  6. Compile into exe

Some fun pitfalls I had:

Learned:

My recommendations: