annotate DEPENDENCIES/mingw32/Python27/include/parsetok.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 /* Parser-tokenizer link interface */
Chris@87 3
Chris@87 4 #ifndef Py_PARSETOK_H
Chris@87 5 #define Py_PARSETOK_H
Chris@87 6 #ifdef __cplusplus
Chris@87 7 extern "C" {
Chris@87 8 #endif
Chris@87 9
Chris@87 10 typedef struct {
Chris@87 11 int error;
Chris@87 12 const char *filename;
Chris@87 13 int lineno;
Chris@87 14 int offset;
Chris@87 15 char *text;
Chris@87 16 int token;
Chris@87 17 int expected;
Chris@87 18 } perrdetail;
Chris@87 19
Chris@87 20 #if 0
Chris@87 21 #define PyPARSE_YIELD_IS_KEYWORD 0x0001
Chris@87 22 #endif
Chris@87 23
Chris@87 24 #define PyPARSE_DONT_IMPLY_DEDENT 0x0002
Chris@87 25
Chris@87 26 #if 0
Chris@87 27 #define PyPARSE_WITH_IS_KEYWORD 0x0003
Chris@87 28 #endif
Chris@87 29
Chris@87 30 #define PyPARSE_PRINT_IS_FUNCTION 0x0004
Chris@87 31 #define PyPARSE_UNICODE_LITERALS 0x0008
Chris@87 32
Chris@87 33
Chris@87 34
Chris@87 35 PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int,
Chris@87 36 perrdetail *);
Chris@87 37 PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int,
Chris@87 38 char *, char *, perrdetail *);
Chris@87 39
Chris@87 40 PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int,
Chris@87 41 perrdetail *, int);
Chris@87 42 PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *,
Chris@87 43 int, char *, char *,
Chris@87 44 perrdetail *, int);
Chris@87 45 PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *, grammar *,
Chris@87 46 int, char *, char *,
Chris@87 47 perrdetail *, int *);
Chris@87 48
Chris@87 49 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *,
Chris@87 50 const char *,
Chris@87 51 grammar *, int,
Chris@87 52 perrdetail *, int);
Chris@87 53 PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(const char *,
Chris@87 54 const char *,
Chris@87 55 grammar *, int,
Chris@87 56 perrdetail *, int *);
Chris@87 57
Chris@87 58 /* Note that he following function is defined in pythonrun.c not parsetok.c. */
Chris@87 59 PyAPI_FUNC(void) PyParser_SetError(perrdetail *);
Chris@87 60
Chris@87 61 #ifdef __cplusplus
Chris@87 62 }
Chris@87 63 #endif
Chris@87 64 #endif /* !Py_PARSETOK_H */