mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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:
parent
6e5be22d97
commit
d3ab37f1df
6 changed files with 60 additions and 9 deletions
18
Include/pgen.h
Normal file
18
Include/pgen.h
Normal 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 */
|
Loading…
Add table
Add a link
Reference in a new issue