+ 1
How do i make a lexer and parser
I have a basic coding language but i need to know how to import a lexer and parser. They are incredibly complicated and i have no idea how they work. Please help me!
3 Answers
+ 3
Lucas Riffle
Gemini produced a great example which i further assembled .. This is not atypical for a beginner.
https://www.sololearn.com/discuss/1884276/?ref=app
https://sololearn.com/compiler-playground/cQQloxTSi5f5/?ref=app
+ 2
you can start by learning about regex. basic understanding of that will give you the foundations for a mental image on how text parsing works.
+ 1
Ok ty