Skip to content

bpo-41044: generate a valid python parser for opt+seq rules #20995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 20, 2020

Conversation

isidentical
Copy link
Member

@isidentical isidentical commented Jun 19, 2020

# Note trailing comma (if there isn't already one,
# which can occur when rules have both repeat0 and optional
# marker, e.g: [rule*])
if call.endswith(","):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hummmm, not a find on relying on the generated code to reason about the grammar structure (I know that we do it in other places but we have been removing those as it makes it more difficult to reason about). In this case I have to say that is pretty straightforward so it may be fine.

@pablogsal pablogsal added the needs backport to 3.9 only security fixes label Jun 20, 2020
@isidentical isidentical requested a review from pablogsal June 20, 2020 06:31
@pablogsal pablogsal merged commit 55460ee into python:master Jun 20, 2020
@miss-islington
Copy link
Contributor

Thanks @isidentical for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.9.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 20, 2020
…nGH-20995)

Co-authored-by: Pablo Galindo <[email protected]>
(cherry picked from commit 55460ee)

Co-authored-by: Batuhan Taskaya <[email protected]>
@bedevere-bot bedevere-bot removed the needs backport to 3.9 only security fixes label Jun 20, 2020
@bedevere-bot
Copy link

GH-21008 is a backport of this pull request to the 3.9 branch.

miss-islington added a commit that referenced this pull request Jun 20, 2020
)

Co-authored-by: Pablo Galindo <[email protected]>
(cherry picked from commit 55460ee)

Co-authored-by: Batuhan Taskaya <[email protected]>
fasih pushed a commit to fasih/cpython that referenced this pull request Jun 29, 2020
arun-mani-j pushed a commit to arun-mani-j/cpython that referenced this pull request Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants