4 ms·
As someone who hasn’t been following closely, was the PEG parser necessary for pattern matching or is that an unrelated change?
by paulgb 6y ago
As someone who hasn’t been following closely, was the PEG parser necessary for pattern matching or is that an unrelated change?
- pansa2 6y agoIIRC one of Guido’s reasons for switching to a PEG parser was to enable the addition of pattern matching.
- erichurkman 6y agoAnd it allowed some non-intuitive parser limitations to be lifted, like full expressions in decorators (@buttons[0].click) and parentheses in context expressions (https://bugs.python.org/issue12782 https://bugs.python.org/issue12782).