Argument-Clinic / cpython

The Python programming language
https://www.python.org/
Other
1 stars 0 forks source link

WIP tokenizer #40

Open erlend-aasland opened 8 months ago

erlend-aasland commented 8 months ago

cc. @serhiy-storchaka: Instead of polluting the CPython PR list, I chose to experiment a little bit more over here first. I gave the tokenizer approach a new chance, but this time using the example from the re docs as a template.

Pros:

Cons:

erlend-aasland commented 8 months ago

Also, it could be nice to be able to reuse the tokenizer to refactor the parameter parsing.

erlend-aasland commented 8 months ago

FTR, I also think the regex approach is nice; it is a step forward from what we have to day, anyway.