Chapter 6: Conditions

This is chapter 6 of implementing Writing a C Compiler in Zig. So, without further ado, time to get on with if statements and conditional expressions. Lexer New keywords! if and else , and two new tokens ? and : . Apparently the word query is an acceptable single word name for a question mark so I am going with that in the lexer. The new keywords are simple, enough, but it requires updating the…