mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
gh-102856: Initial implementation of PEP 701 (#102855)
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com>
This commit is contained in:
parent
a6b07b5a34
commit
1ef61cf71a
27 changed files with 8859 additions and 6573 deletions
|
|
@ -67,14 +67,18 @@ extern "C" {
|
|||
#define RARROW 51
|
||||
#define ELLIPSIS 52
|
||||
#define COLONEQUAL 53
|
||||
#define OP 54
|
||||
#define AWAIT 55
|
||||
#define ASYNC 56
|
||||
#define TYPE_IGNORE 57
|
||||
#define TYPE_COMMENT 58
|
||||
#define SOFT_KEYWORD 59
|
||||
#define ERRORTOKEN 60
|
||||
#define N_TOKENS 64
|
||||
#define EXCLAMATION 54
|
||||
#define OP 55
|
||||
#define AWAIT 56
|
||||
#define ASYNC 57
|
||||
#define TYPE_IGNORE 58
|
||||
#define TYPE_COMMENT 59
|
||||
#define SOFT_KEYWORD 60
|
||||
#define FSTRING_START 61
|
||||
#define FSTRING_MIDDLE 62
|
||||
#define FSTRING_END 63
|
||||
#define ERRORTOKEN 64
|
||||
#define N_TOKENS 68
|
||||
#define NT_OFFSET 256
|
||||
|
||||
/* Special definitions for cooperation with parser */
|
||||
|
|
@ -86,6 +90,8 @@ extern "C" {
|
|||
(x) == NEWLINE || \
|
||||
(x) == INDENT || \
|
||||
(x) == DEDENT)
|
||||
#define ISSTRINGLIT(x) ((x) == STRING || \
|
||||
(x) == FSTRING_MIDDLE)
|
||||
|
||||
|
||||
// Symbols exported for test_peg_generator
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue