cpython/Include/internal/pycore_token.h

// Auto-generated by Tools/build/generate_token.py

/* Token types */
#ifndef Py_INTERNAL_TOKEN_H
#define Py_INTERNAL_TOKEN_H
#ifdef __cplusplus
extern "C" {
#endif

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

#undef TILDE   /* Prevent clash of our definition with system macro. Ex AIX, ioctl.h */

#define ENDMARKER
#define NAME
#define NUMBER
#define STRING
#define NEWLINE
#define INDENT
#define DEDENT
#define LPAR
#define RPAR
#define LSQB
#define RSQB
#define COLON
#define COMMA
#define SEMI
#define PLUS
#define MINUS
#define STAR
#define SLASH
#define VBAR
#define AMPER
#define LESS
#define GREATER
#define EQUAL
#define DOT
#define PERCENT
#define LBRACE
#define RBRACE
#define EQEQUAL
#define NOTEQUAL
#define LESSEQUAL
#define GREATEREQUAL
#define TILDE
#define CIRCUMFLEX
#define LEFTSHIFT
#define RIGHTSHIFT
#define DOUBLESTAR
#define PLUSEQUAL
#define MINEQUAL
#define STAREQUAL
#define SLASHEQUAL
#define PERCENTEQUAL
#define AMPEREQUAL
#define VBAREQUAL
#define CIRCUMFLEXEQUAL
#define LEFTSHIFTEQUAL
#define RIGHTSHIFTEQUAL
#define DOUBLESTAREQUAL
#define DOUBLESLASH
#define DOUBLESLASHEQUAL
#define AT
#define ATEQUAL
#define RARROW
#define ELLIPSIS
#define COLONEQUAL
#define EXCLAMATION
#define OP
#define TYPE_IGNORE
#define TYPE_COMMENT
#define SOFT_KEYWORD
#define FSTRING_START
#define FSTRING_MIDDLE
#define FSTRING_END
#define COMMENT
#define NL
#define ERRORTOKEN
#define N_TOKENS
#define NT_OFFSET

/* Special definitions for cooperation with parser */

#define ISTERMINAL(x)
#define ISNONTERMINAL(x)
#define ISEOF(x)
#define ISWHITESPACE(x)
#define ISSTRINGLIT(x)


// Export these 4 symbols for 'test_peg_generator'
PyAPI_DATA(const char * const) _PyParser_TokenNames[]; /* Token names */
PyAPI_FUNC(int) _PyToken_OneChar(int);
PyAPI_FUNC(int) _PyToken_TwoChars(int, int);
PyAPI_FUNC(int) _PyToken_ThreeChars(int, int, int);

#ifdef __cplusplus
}
#endif
#endif  // !Py_INTERNAL_TOKEN_H