Ask coding questions

← Back to all posts
Can anyone give tips on a Lexer
2plus2is4hoi (92)

I need to write a lexer for my coding language (in python), I have tried multiple ways but no success. Does anyone have a guide

pls

Comments
hotnewtop
Coder100 (16915)

https://craftinginterpreters.com
although it is in java, its very easy to be ported.

The basic process is to just create tokens char by char