diff options
Diffstat (limited to 'Include/token.h')
-rw-r--r-- | Include/token.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/token.h b/Include/token.h index e08708b..9b8a3aa 100644 --- a/Include/token.h +++ b/Include/token.h @@ -78,6 +78,10 @@ extern "C" { #define ISTERMINAL(x) ((x) < NT_OFFSET) #define ISNONTERMINAL(x) ((x) >= NT_OFFSET) #define ISEOF(x) ((x) == ENDMARKER) +#define ISWHITESPACE(x) ((x) == ENDMARKER || \ + (x) == NEWLINE || \ + (x) == INDENT || \ + (x) == DEDENT) PyAPI_DATA(const char * const) _PyParser_TokenNames[]; /* Token names */ |