summaryrefslogtreecommitdiff
path: root/Include/pgen.h
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-04-17 14:55:42 +0000
committerGuido van Rossum <guido@python.org>2003-04-17 14:55:42 +0000
commit48065499338e746848b012c1d8d1a27865e8f16f (patch)
tree97b56bcdd8a06ffd98613227861b0e25da47e48b /Include/pgen.h
parentfcf55ea4fd0f29c24db9ba416e323449ce9d6bbe (diff)
downloadcpython-48065499338e746848b012c1d8d1a27865e8f16f.tar.gz
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.
Diffstat (limited to 'Include/pgen.h')
-rw-r--r--Include/pgen.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/Include/pgen.h b/Include/pgen.h
new file mode 100644
index 0000000000..8a325ed074
--- /dev/null
+++ b/Include/pgen.h
@@ -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 */