Skip to content

gh-153569: finish tokenizer offsets and the opaque consumer API - #144

Closed
pablogsal wants to merge 3 commits into
gh-153569-tokenizer-diagnostic-statefrom
gh-153569-tokenizer-source-ftstring-clean
Closed

pablogsal wants to merge 3 commits into
gh-153569-tokenizer-diagnostic-statefrom
gh-153569-tokenizer-source-ftstring-clean

Conversation

@pablogsal

Copy link
Copy Markdown
Owner

Make tok_state opaque to pegen and _tokenize, with operations for tokens, source views, diagnostics, configuration, and interactive input.

Represent persistent scanner positions as offsets into decoded source storage, removing pointer save/restore around buffer growth. Return tokens with their final kind, span, locations, and raw context, and make metadata ownership consistent when tokens are reused or passed to the parser.

Depends on #143.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant