August 2024
Intermediate to advanced
792 pages
23h 9m
English

In this chapter, you’ll add all things loop-related. That includes for, while, and do loops, plus break and continue statements to skip over parts of a loop. These are the last statements you’ll implement in this book. Once you finish this chapter, if you’ve implemented all the extra credit features, your compiler will be able to handle every kind of C statement.
But you have work to do first! You’ll update the lexer and parser to support all five new statements. Then, you’ll add a new semantic analysis pass, which ...
Read now
Unlock full access