I want to learn how to write lexer. My university course had a task in which we had to write a parser (and a lexer to agree with it), but it was given to us without any instructions or feedback (outside the sign), so I did not learn much from this.
After searching for this topic, I can find some pretty complicated recordings that focus on areas that I feel are a few steps ahead of where I am. I want to discuss the basics of writing a lexer for a very simple language, which I can use as a basis for learning the tokenization of more complex languages.
At this point, I'm not interested in best practices or optimization methods, but instead prefer to focus on the main points. What are some good resources to get me started?
compiler-construction language-agnostic lexer
Rupert Madden-Abbott Jun 02 2018-11-11T00: 00Z
source share