Bump version to 0.9.1.
[python/dscho.git] / Include / parsetok.h
blob71e7d899436d0a3e54c395a7ce8fee3b96a7f43d
1 /***********************************************************
2 Copyright (c) 2000, BeOpen.com.
3 Copyright (c) 1995-2000, Corporation for National Research Initiatives.
4 Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
5 All rights reserved.
7 See the file "Misc/COPYRIGHT" for information on usage and
8 redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9 ******************************************************************/
11 /* Parser-tokenizer link interface */
13 #ifndef Py_PARSETOK_H
14 #define Py_PARSETOK_H
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
19 typedef struct {
20 int error;
21 char *filename;
22 int lineno;
23 int offset;
24 char *text;
25 int token;
26 int expected;
27 } perrdetail;
29 extern DL_IMPORT(node *) PyParser_ParseString(char *, grammar *, int,
30 perrdetail *);
31 extern DL_IMPORT(node *) PyParser_ParseFile (FILE *, char *, grammar *, int,
32 char *, char *, perrdetail *);
34 #ifdef __cplusplus
36 #endif
37 #endif /* !Py_PARSETOK_H */