IUCompilerCourse / Essentials-of-Compilation

A book about compiling Racket and Python to x86-64 assembly
1.28k stars 140 forks source link

Fix Explicate control in Chapter 5. #107

Closed ksromanov closed 2 years ago

ksromanov commented 2 years ago

There are leftovers of C_Clos, and also it makes sense to emphasize that programs can contain loops. Technically, abstract syntax of C_if language also allows loops, but since the programs in this language are generated by the compiler itself, they do not have loops.

As usual, please feel free to close this PR and correct the text in a better way. Would you please also take a look at Figure 5.7 with the abstract syntax of \LangCLoop{}, which has extra term def (it belongs to functions, apparently).

jsiek commented 2 years ago

Thanks!