Chapter 4: Logic

Three chapters out of who knows from Writing a C Compiler . Time onto Chapter 4. Chapter 4 is about, let me check, "logical and relational operators". Great. More operators. Lexer You would expect the lexer by now to be a boring done deal, and you would be right. However, this is slightly more interesting because I get to add more states to the state machine! The tokens for today are the…