Yet another “compiling” course that puts all the emphasis on parsing.<p>Rule of thumb: parsing/lexing shouldn’t takes more than 10% of your compiler course.
Book version to be released in October '23 : <a href="https://nostarch.com/writing-c-compiler" rel="nofollow">https://nostarch.com/writing-c-compiler</a>
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:<p><pre><code> print(“You have some form of undefined behavior, which means printing this is a valid response per the C standard”)</code></pre>