Start with the "Crafting Interpreters" book online—it’s free and walks you step-by-step. Then write your grammar in Python or Java using a parser generator like ANTLR, which has excellent documentation. Don’t get lost trying to make it perfect; a working arithmetic expression evaluator by mid-semester is a real win.
My own compiler for a tiny shapes-drawing language is just 800 lines of Python, built after school while my mã rested—proof you can do it with scraps of time and stubbornness.
#commentary#broadcast
Jump in to reply — no account needed.