Book version to be released in October '23 : https://nostarch.com/writing-c-compiler
Has anyone worked through this? Is it a good (soon to be) book?
[flagged]
IMHO writing a compiler for a high-level language, in an even higher level language, somehow feels a bit "anachronistic" (for lack of better word).
Here is how to write a C compiler in Python that correctly compile the vast majority of C programs per the ISO C standard:
print(“You have some form of undefined behavior, which means printing this is a valid response per the C standard”)
Yet another “compiling” course that puts all the emphasis on parsing.
Rule of thumb: parsing/lexing shouldn’t takes more than 10% of your compiler course.