Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bpo-35808: Retire pgen and use pgen2 to generate the parser#11814

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pablogsal merged 9 commits intopython:masterfrompablogsal:pgen2
Mar 1, 2019
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fixup! Add pgen module to the Parser folder to produce pgen output us…
…ing pgen2
  • Loading branch information
@pablogsal
pablogsal committedFeb 20, 2019
commitdc2facbe85f9804a681e2fa35568d8340b13267c
5 changes: 4 additions & 1 deletionParser/pgen/token.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -31,7 +31,10 @@ def generate_opmap(tokens):
continue

name, op = pieces

yield (op.strip("'"), name)

# Yield independently <>. This is needed so it does not collide
# with the token generation in "generate_tokens" because if this
# symbol is included in Grammar/Tokens, it will collide with !=
# as it has the same name (NOTEQUAL).
yield ('<>', 'NOTEQUAL')

[8]ページ先頭

©2009-2025 Movatter.jp