]> git.proxmox.com Git - mirror_edk2.git/blame - AppPkg/Applications/Python/Python-2.7.10/Include/parsetok.h
EmbeddedPkg: Extend NvVarStoreFormattedLib LIBRARY_CLASS
[mirror_edk2.git] / AppPkg / Applications / Python / Python-2.7.10 / Include / parsetok.h
CommitLineData
c8042e10
DM
1\r
2/* Parser-tokenizer link interface */\r
3\r
4#ifndef Py_PARSETOK_H\r
5#define Py_PARSETOK_H\r
6#ifdef __cplusplus\r
7extern "C" {\r
8#endif\r
9\r
10typedef struct {\r
11 int error;\r
12 const char *filename;\r
13 int lineno;\r
14 int offset;\r
15 char *text;\r
16 int token;\r
17 int expected;\r
18} perrdetail;\r
19\r
20#if 0\r
21#define PyPARSE_YIELD_IS_KEYWORD 0x0001\r
22#endif\r
23\r
24#define PyPARSE_DONT_IMPLY_DEDENT 0x0002\r
25\r
26#if 0\r
27#define PyPARSE_WITH_IS_KEYWORD 0x0003\r
28#endif\r
29\r
30#define PyPARSE_PRINT_IS_FUNCTION 0x0004\r
31#define PyPARSE_UNICODE_LITERALS 0x0008\r
32\r
33\r
34\r
35PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int,\r
36 perrdetail *);\r
37PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int,\r
38 char *, char *, perrdetail *);\r
39\r
40PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int,\r
41 perrdetail *, int);\r
42PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *,\r
43 int, char *, char *,\r
44 perrdetail *, int);\r
45PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *, grammar *,\r
46 int, char *, char *,\r
47 perrdetail *, int *);\r
48\r
49PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *,\r
50 const char *,\r
51 grammar *, int,\r
52 perrdetail *, int);\r
53PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(const char *,\r
54 const char *,\r
55 grammar *, int,\r
56 perrdetail *, int *);\r
57\r
58/* Note that he following function is defined in pythonrun.c not parsetok.c. */\r
59PyAPI_FUNC(void) PyParser_SetError(perrdetail *);\r
60\r
61#ifdef __cplusplus\r
62}\r
63#endif\r
64#endif /* !Py_PARSETOK_H */\r