Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
anentropic
· 3y ago · 0 comments
FWIW there is an example of building a tokenizer/scanner using documented features of the re module here:
https://docs.python.org/3.11/library/re.html#writing-a-token...
re.Scanner looks more succinct though...!
Comments
[–]
czx4f4bd
3y ago
I find that even more bizarre tbh. Thst seems like the perfect place to document the Scanner class.