Skip to content

gh-153569: drive tokenizer input through source offsets - #156482

Draft
pablogsal wants to merge 3 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-offset-state
Draft

gh-153569: drive tokenizer input through source offsets#156482
pablogsal wants to merge 3 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-offset-state

Conversation

@pablogsal

@pablogsal pablogsal commented Aug 27, 2026

Copy link
Copy Markdown
Member

The common reader now keeps decoded file, readline(), and interactive input in SourceText, and prepared input walks the same retained source with a cursor.

The lexer still gets its current pointer view for now. When the retained source grows, those live pointers are saved as offsets and restored after relocation, so later PRs can move the scanners without another input implementation.

This follows #156472 and is the first split from #153569.

@pablogsal

Copy link
Copy Markdown
Member Author

Do not review until #156472 lands.

@pablogsal
pablogsal force-pushed the gh-153569-tokenizer-offset-state branch from dddc133 to 1753605 Compare August 28, 2026 15:32
@pablogsal

Copy link
Copy Markdown
Member Author

#156472 has landed; this is rebased on it now.

@pablogsal
pablogsal force-pushed the gh-153569-tokenizer-offset-state branch from 1753605 to 8bd1d3a Compare August 28, 2026 16:24
@pablogsal pablogsal changed the title gh-153569: move tokenizer state to source offsets gh-153569: drive tokenizer input through source offsets Aug 28, 2026
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.

1 participant