--- /dev/null
+\r
+/* Parser-tokenizer link interface */\r
+\r
+#ifndef Py_PARSETOK_H\r
+#define Py_PARSETOK_H\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+typedef struct {\r
+ int error;\r
+ const char *filename;\r
+ int lineno;\r
+ int offset;\r
+ char *text;\r
+ int token;\r
+ int expected;\r
+} perrdetail;\r
+\r
+#if 0\r
+#define PyPARSE_YIELD_IS_KEYWORD 0x0001\r
+#endif\r
+\r
+#define PyPARSE_DONT_IMPLY_DEDENT 0x0002\r
+\r
+#if 0\r
+#define PyPARSE_WITH_IS_KEYWORD 0x0003\r
+#endif\r
+\r
+#define PyPARSE_PRINT_IS_FUNCTION 0x0004\r
+#define PyPARSE_UNICODE_LITERALS 0x0008\r
+\r
+\r
+\r
+PyAPI_FUNC(node *) PyParser_ParseString(const char *, grammar *, int,\r
+ perrdetail *);\r
+PyAPI_FUNC(node *) PyParser_ParseFile (FILE *, const char *, grammar *, int,\r
+ char *, char *, perrdetail *);\r
+\r
+PyAPI_FUNC(node *) PyParser_ParseStringFlags(const char *, grammar *, int,\r
+ perrdetail *, int);\r
+PyAPI_FUNC(node *) PyParser_ParseFileFlags(FILE *, const char *, grammar *,\r
+ int, char *, char *,\r
+ perrdetail *, int);\r
+PyAPI_FUNC(node *) PyParser_ParseFileFlagsEx(FILE *, const char *, grammar *,\r
+ int, char *, char *,\r
+ perrdetail *, int *);\r
+\r
+PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilename(const char *,\r
+ const char *,\r
+ grammar *, int,\r
+ perrdetail *, int);\r
+PyAPI_FUNC(node *) PyParser_ParseStringFlagsFilenameEx(const char *,\r
+ const char *,\r
+ grammar *, int,\r
+ perrdetail *, int *);\r
+\r
+/* Note that he following function is defined in pythonrun.c not parsetok.c. */\r
+PyAPI_FUNC(void) PyParser_SetError(perrdetail *);\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+#endif /* !Py_PARSETOK_H */\r