]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-97973: Return all necessary information from the tokenizer (GH-97984)
authorLysandros Nikolaou <lisandrosnik@gmail.com>
Thu, 6 Oct 2022 23:07:17 +0000 (16:07 -0700)
committerGitHub <noreply@github.com>
Thu, 6 Oct 2022 23:07:17 +0000 (16:07 -0700)
commitcbf0afd8a1474d68310331af9218606959d4cc22
treecd421653d73d25c89fa8c02e5819517efa76f7b3
parentb9d2e8171696514e9226164005f7bf24bf69e66d
gh-97973: Return all necessary information from the tokenizer (GH-97984)

Right now, the tokenizer only returns type and two pointers to the start and end of the token.
This PR modifies the tokenizer to return the type and set all of the necessary information,
so that the parser does not have to this.
Misc/NEWS.d/next/Core and Builtins/2022-10-06-20-41-29.gh-issue-97973.gB-xWi.rst [new file with mode: 0644]
Parser/pegen.c
Parser/pegen_errors.c
Parser/tokenizer.c
Parser/tokenizer.h
Python/Python-tokenize.c