4 ms·
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
by anentropic 3y ago
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-tokenizer https://docs.python.org/3.11/library/re.html#writing-a-token...
re.Scanner looks more succinct though...!
- czx4f4bd 3y agoI find that even more bizarre tbh. Thst seems like the perfect place to document the Scanner class.