home *** CD-ROM | disk | FTP | other *** search
/ PC World 2001 April / PCWorld_2001-04_cd.bin / Software / TemaCD / webclean / !!!python!!! / BeOpen-Python-2.0.exe / PARSETOK.H < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-01  |  641 b   |  29 lines

  1.  
  2. /* Parser-tokenizer link interface */
  3.  
  4. #ifndef Py_PARSETOK_H
  5. #define Py_PARSETOK_H
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. typedef struct {
  11.     int error;
  12.     char *filename;
  13.     int lineno;
  14.     int offset;
  15.     char *text;
  16.     int token;
  17.     int expected;
  18. } perrdetail;
  19.  
  20. extern DL_IMPORT(node *) PyParser_ParseString(char *, grammar *, int,
  21.                                               perrdetail *);
  22. extern DL_IMPORT(node *) PyParser_ParseFile (FILE *, char *, grammar *, int,
  23.                                              char *, char *, perrdetail *);
  24.  
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* !Py_PARSETOK_H */
  29.