Title: bpo-40334: Refactor peg_generator to receive a Tokens file when building c code by pablogsal · Pull Request #19745 · python/cpython · GitHub
Open Graph Title: bpo-40334: Refactor peg_generator to receive a Tokens file when building c code by pablogsal · Pull Request #19745 · python/cpython
X Title: bpo-40334: Refactor peg_generator to receive a Tokens file when building c code by pablogsal · Pull Request #19745 · python/cpython
Description: https://bugs.python.org/issue40334 This PR does the following: Fix a bunch of (very minor) mypy stuff that was missing. Separate the C parser and the Python parser in pegen main (because both receive different arguments). Thread down all these changes to the generator build module. Add a new option to the C parser command line to receive the Tokens file. Thread down the Tokens file and add code to parse it and calculate the required token information. Use the new tokens in the c_generator (and simplify some code that was hardcoding some token names). Update the build files (Makefile and the Windows one) to use the new option. Run black over the source.
Open Graph Description: https://bugs.python.org/issue40334 This PR does the following: Fix a bunch of (very minor) mypy stuff that was missing. Separate the C parser and the Python parser in pegen main (because both rec...
X Description: https://bugs.python.org/issue40334 This PR does the following: Fix a bunch of (very minor) mypy stuff that was missing. Separate the C parser and the Python parser in pegen main (because both rec...
Opengraph URL: https://github.com/python/cpython/pull/19745
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9f857d2e-638d-0675-4a0e-3b2ea59f6a47 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 965A:2AA429:BB84F9:103D23B:696A3458 |
| html-safe-nonce | eee5a3b87b84c61eea142330fc7060adadaac30b6ca919685e86586a6ac94039 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjVBOjJBQTQyOTpCQjg0Rjk6MTAzRDIzQjo2OTZBMzQ1OCIsInZpc2l0b3JfaWQiOiI0NzY4MzUzNjE1MjY2NTkxODMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f5164911a5226acad89a1a6339ef3cc9ac98f392951040ed5fde5660635dfe42 |
| hovercard-subject-tag | pull_request:409812545 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/19745/files |
| twitter:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/11718525?s=400&v=4 |
| og:image:alt | https://bugs.python.org/issue40334 This PR does the following: Fix a bunch of (very minor) mypy stuff that was missing. Separate the C parser and the Python parser in pegen main (because both rec... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 321736bfdb3f591415ae895a0459bec204b26a76caf47ba5c980634cfacc4538 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7a9163cefd1ea4bd06f8eb7c082f43e4e53f626f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width