[issue46485] ~ PEG operator in the grammar

2022-01-23 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> not a bug status: open -> closed ___ Python tracker ___ ___ Python-bugs-list ma

[issue46485] ~ PEG operator in the grammar

2022-01-23 Thread Robert Einhorn
Robert Einhorn added the comment: Thanks -- resolution: not a bug -> status: closed -> open ___ Python tracker ___ ___ Python-bugs

[issue46485] ~ PEG operator in the grammar

2022-01-23 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: It means the same as if there is alternatives: if it fails to parse then it will immediately fail. We place them in rules like this in preparation for extension or in case there are invalid_* rules in the same set (which doesn't appear in the grammar

[issue46485] ~ PEG operator in the grammar

2022-01-23 Thread Robert Einhorn
New submission from Robert Einhorn : This is probably not an error and I may misinterpret the PEP 617, but I don't know what the ~ PEG operator means in the next rule if there is no alternative: assignment_expression: | NAME ':=' ~ expression And similarly with this rule if there is no mo