Argument-Clinic / cpython

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

PoC: Use a lexer to more easily identify invalid syntax #39

Closed erlend-aasland closed 8 months ago

erlend-aasland commented 9 months ago

Some parts of the parser state machine are a bit hairy; there is a lot of C&P snippets, and the places where we detect syntax error are scattered everywhere.

Here's an experiment: