annotate DEPENDENCIES/mingw32/Python27/include/token.h @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents 2a2c65a20a8b
children
rev   line source
Chris@87 1
Chris@87 2 /* Token types */
Chris@87 3
Chris@87 4 #ifndef Py_TOKEN_H
Chris@87 5 #define Py_TOKEN_H
Chris@87 6 #ifdef __cplusplus
Chris@87 7 extern "C" {
Chris@87 8 #endif
Chris@87 9
Chris@87 10 #undef TILDE /* Prevent clash of our definition with system macro. Ex AIX, ioctl.h */
Chris@87 11
Chris@87 12 #define ENDMARKER 0
Chris@87 13 #define NAME 1
Chris@87 14 #define NUMBER 2
Chris@87 15 #define STRING 3
Chris@87 16 #define NEWLINE 4
Chris@87 17 #define INDENT 5
Chris@87 18 #define DEDENT 6
Chris@87 19 #define LPAR 7
Chris@87 20 #define RPAR 8
Chris@87 21 #define LSQB 9
Chris@87 22 #define RSQB 10
Chris@87 23 #define COLON 11
Chris@87 24 #define COMMA 12
Chris@87 25 #define SEMI 13
Chris@87 26 #define PLUS 14
Chris@87 27 #define MINUS 15
Chris@87 28 #define STAR 16
Chris@87 29 #define SLASH 17
Chris@87 30 #define VBAR 18
Chris@87 31 #define AMPER 19
Chris@87 32 #define LESS 20
Chris@87 33 #define GREATER 21
Chris@87 34 #define EQUAL 22
Chris@87 35 #define DOT 23
Chris@87 36 #define PERCENT 24
Chris@87 37 #define BACKQUOTE 25
Chris@87 38 #define LBRACE 26
Chris@87 39 #define RBRACE 27
Chris@87 40 #define EQEQUAL 28
Chris@87 41 #define NOTEQUAL 29
Chris@87 42 #define LESSEQUAL 30
Chris@87 43 #define GREATEREQUAL 31
Chris@87 44 #define TILDE 32
Chris@87 45 #define CIRCUMFLEX 33
Chris@87 46 #define LEFTSHIFT 34
Chris@87 47 #define RIGHTSHIFT 35
Chris@87 48 #define DOUBLESTAR 36
Chris@87 49 #define PLUSEQUAL 37
Chris@87 50 #define MINEQUAL 38
Chris@87 51 #define STAREQUAL 39
Chris@87 52 #define SLASHEQUAL 40
Chris@87 53 #define PERCENTEQUAL 41
Chris@87 54 #define AMPEREQUAL 42
Chris@87 55 #define VBAREQUAL 43
Chris@87 56 #define CIRCUMFLEXEQUAL 44
Chris@87 57 #define LEFTSHIFTEQUAL 45
Chris@87 58 #define RIGHTSHIFTEQUAL 46
Chris@87 59 #define DOUBLESTAREQUAL 47
Chris@87 60 #define DOUBLESLASH 48
Chris@87 61 #define DOUBLESLASHEQUAL 49
Chris@87 62 #define AT 50
Chris@87 63 /* Don't forget to update the table _PyParser_TokenNames in tokenizer.c! */
Chris@87 64 #define OP 51
Chris@87 65 #define ERRORTOKEN 52
Chris@87 66 #define N_TOKENS 53
Chris@87 67
Chris@87 68 /* Special definitions for cooperation with parser */
Chris@87 69
Chris@87 70 #define NT_OFFSET 256
Chris@87 71
Chris@87 72 #define ISTERMINAL(x) ((x) < NT_OFFSET)
Chris@87 73 #define ISNONTERMINAL(x) ((x) >= NT_OFFSET)
Chris@87 74 #define ISEOF(x) ((x) == ENDMARKER)
Chris@87 75
Chris@87 76
Chris@87 77 PyAPI_DATA(char *) _PyParser_TokenNames[]; /* Token names */
Chris@87 78 PyAPI_FUNC(int) PyToken_OneChar(int);
Chris@87 79 PyAPI_FUNC(int) PyToken_TwoChars(int, int);
Chris@87 80 PyAPI_FUNC(int) PyToken_ThreeChars(int, int, int);
Chris@87 81
Chris@87 82 #ifdef __cplusplus
Chris@87 83 }
Chris@87 84 #endif
Chris@87 85 #endif /* !Py_TOKEN_H */