Changes from Jonathan Riehl to allow his pgen extension (PEP 269) to

work.  This includes some more code that used to be part of pgen in
the main parser; I'm okay with that.  I'll see if the Windows build
needs work next.
This commit is contained in:
Guido van Rossum 2003-04-17 14:55:42 +00:00
parent 6e5be22d97
commit d3ab37f1df
6 changed files with 60 additions and 9 deletions

18
Include/pgen.h Normal file
View file

@ -0,0 +1,18 @@
#ifndef Py_PGEN_H
#define Py_PGEN_H
#ifdef __cplusplus
extern "C" {
#endif
/* Parser generator interface */
extern grammar *meta_grammar(void);
struct _node;
extern grammar *pgen(struct _node *);
#ifdef __cplusplus
}
#endif
#endif /* !Py_PGEN_H */