I am starting a new project.
A Simple TypeScript Compiler in Rust.
After getting a handful of experience working with parsers, lexers and ASTs, I am pritty confident to move to building simple compilers.
Privously, I started implementing a simple Pascal interpreter in Rust by following a great article series by
@rspivak.
This article series was a gold mine for teaching me about parsing, lexing, and semantic analysis.
Even though I'm not done yet (currently at part 13), I am starting this project beside it.
(I promise to
@rspivak to complete his article series.)
In this project, I will implement a simple compiler in Rust that can compile a subset of TypeScript to 32bit ARM assembly by following the book "Compiling to Assembly from Scratch".
The simple or subset of TypeScript includes:
- arithmetic and comparison operators
- integer numbers
- functions
- conditional statements and loops
- local variables, and assignments
- and more
If you need any kind of links or have any questions, please let me know.
#Rust #TypeScript #Compilers #TypeScriptCompilers #RustCompilers
ALT Starting a new compiler project in Rust