Skip to content

gh-153569: consolidate tokenizer input, layout, and diagnostics - #157055

Open
pablogsal wants to merge 6 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-input-diagnostics
Open

gh-153569: consolidate tokenizer input, layout, and diagnostics#157055
pablogsal wants to merge 6 commits into
python:mainfrom
pablogsal:gh-153569-tokenizer-input-diagnostics

Conversation

@pablogsal

@pablogsal pablogsal commented Sep 7, 2026

Copy link
Copy Markdown
Member

Put decoded input ownership and interactive-input control in the reader, and group indentation and logical-line handling in the layout state.

Record diagnostic locations and source spans separately from the scanning cursor. Parser consumers use the tokenizer snapshot and view APIs, including the diagnostic context. Remove the unused cursor and source lookup APIs, duplicate accessors, obsolete state, and dead lexer header and debug helper.

Part of gh-153569. Last PR in the stack; the preceding PRs have landed.

@pablogsal
pablogsal force-pushed the gh-153569-tokenizer-input-diagnostics branch from 11383f5 to d03c162 Compare September 12, 2026 13:37
@pablogsal
pablogsal marked this pull request as ready for review September 12, 2026 17:51
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