Rishabh Sharma

Ch.02 · PLANNED

Custom Language Compiler & Assembler

Rust backend

Write a small imperative program, compile it through lexer, parser, AST, IR, and SAP-1 opcodes, then flash the memory image into the Chapter 01 CPU.

  • Pipeline: lexer → parser → AST → IR → SAP-1 opcodes.
  • Inspect the AST and the hex memory dump before flashing.
  • Flash to the Chapter 01 CPU and watch the program execute on the simulated machine.

This chapter has no lab yet. The route is reserved so the navigation can grow without a placeholder simulation.

Chapter 01 lab