June 2017
Beginner
1296 pages
69h 23m
English
In Exercises 7.36–7.38, we introduced Simpletron Machine Language (SML), and you implemented a Simpletron computer simulator to execute SML programs. In Exercises 21.30–21.34, we build a compiler that converts programs written in a high-level programming language to SML. This section “ties” together the entire programming process. You’ll write programs in this new high-level language, compile them on the compiler you build and run them on the simulator you built in Exercise 7.37. You should make every effort to implement your compiler in an object-oriented manner.
21.30 (The Simple Language) Before we begin building the compiler, we discuss a simple, yet powerful high-level language similar to early ...
Read now
Unlock full access