gh-153569: hide tokenizer state behind token and source operations - #156654
Draft
pablogsal wants to merge 4 commits into
Draft
gh-153569: hide tokenizer state behind token and source operations#156654pablogsal wants to merge 4 commits into
pablogsal wants to merge 4 commits into
Conversation
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
4 times, most recently
from
August 30, 2026 13:16
b2bc8d1 to
d9b2b16
Compare
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
4 times, most recently
from
September 5, 2026 17:46
9ce1fd9 to
afd9d72
Compare
This was referenced Sep 5, 2026
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
from
September 5, 2026 19:17
afd9d72 to
f72cb2b
Compare
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
3 times, most recently
from
September 6, 2026 20:57
7e5d82c to
9240806
Compare
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
4 times, most recently
from
September 6, 2026 23:35
0eb2ce0 to
6f220e4
Compare
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
from
September 7, 2026 00:03
6f220e4 to
bbc061f
Compare
pablogsal
force-pushed
the
gh-153569-tokenizer-source-ftstring-clean
branch
from
September 7, 2026 00:05
bbc061f to
b619385
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Make pegen and
_tokenizeconsume tokenizer operations instead of accessing the tokenizer layout. Return token kind, span, location, and raw-string context together, so parser actions use the context of the cached token.Represent persistent scanner positions as offsets and remove pointer save/restore bookkeeping when input storage grows.
Part of gh-153569.
Previous: #156484. Next: #157055.
Please do not review until #156484 lands.