+ 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!

3rd Oct 2025, 8:59 PM
MiniGameLuigi
MiniGameLuigi - avatar
3 Antwoorden
+ 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
3rd Oct 2025, 10:02 PM
BroFar
BroFar - avatar
+ 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.
5th Oct 2025, 3:34 AM
Bob_Li
Bob_Li - avatar
+ 1
Ok ty
5th Oct 2025, 12:12 PM
MiniGameLuigi
MiniGameLuigi - avatar