Here is a roadmap, if you are interested in compilers and interpreters:
- Let's Build A Simple Interpreter by
@rspivak: Absolutely best resources for beginners, and will teach you about lexing, parsing, ASTs, and semantic analysis.
- Crafting Interpreters by Robert Nystrom: Best book to master interpreters.
- CS 4120: Introduction to Compiler and CS 6120: Advanced Compilers: Can't say anything about these because not personally tried them, but I have these on my personal roadmap
- Beginner's Guide to Linkers: Again, haven't tried this one, but have it on my personal list
While there are other helpful resources to learn more about compilers and interpreters, but, after these, you should focus on building things instead of covering more resources.
These will be enough for you to learn to build compilers and interpreters.
One more thing, if you are going to use LLVM for your compiler backend, I think you should follow the basic LLVM tutorial on the official website, i.e. "Kaleidoscope: Implementing a Language with LLVM."
If you need any links or have any questions, feel free to drop them below.
#Compilers #LLVM #Interpreters #Programming #LanguageLearning