Skip to content
Open to SDE roles · full-time and internships +91 90504 57303
Work/B-side
2023 · Data structures and algorithms

E++ compiler

Compiles E++ statements into stack-machine commands, managing variable memory with a min-heap.

C++CompilersCode generation

What it does

The next step after the evaluator. E++ statements are parsed into expression trees, then walked to generate stack-machine commands like PUSH and ADD. Variables get memory addresses from a min-heap of free slots, and deleting a variable gives its slot back.

Size

692 lines of code.

Next project
Corpus Q&A tool
Keep going
CV Contact