blob: 151990d06af61a42806cc060a8319d4da5c17ac4 [file] [log] [blame]
Guido van Rossuma3309961993-07-28 09:05:47 +00001#ifndef Py_PARSETOK_H
2#define Py_PARSETOK_H
3#ifdef __cplusplus
4extern "C" {
5#endif
6
Guido van Rossumf70e43a1991-02-19 12:39:46 +00007/***********************************************************
Guido van Rossumfd71b9e2000-06-30 23:50:40 +00008Copyright (c) 2000, BeOpen.com.
9Copyright (c) 1995-2000, Corporation for National Research Initiatives.
10Copyright (c) 1990-1995, Stichting Mathematisch Centrum.
11All rights reserved.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000012
Guido van Rossumfd71b9e2000-06-30 23:50:40 +000013See the file "Misc/COPYRIGHT" for information on usage and
14redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
Guido van Rossumf70e43a1991-02-19 12:39:46 +000015******************************************************************/
16
Guido van Rossum85a5fbb1990-10-14 12:07:46 +000017/* Parser-tokenizer link interface */
18
Guido van Rossumb6775db1994-08-01 11:34:53 +000019typedef struct {
20 int error;
21 char *filename;
22 int lineno;
23 int offset;
24 char *text;
25} perrdetail;
26
Guido van Rossum43466ec1998-12-04 18:48:25 +000027extern DL_IMPORT(node *) PyParser_ParseString Py_PROTO((char *, grammar *, int, perrdetail *));
28extern DL_IMPORT(node *) PyParser_ParseFile Py_PROTO((FILE *, char *, grammar *, int,
Guido van Rossumb6775db1994-08-01 11:34:53 +000029 char *, char *, perrdetail *));
Guido van Rossuma3309961993-07-28 09:05:47 +000030
31#ifdef __cplusplus
32}
33#endif
34#endif /* !Py_PARSETOK_H */