summaryrefslogtreecommitdiffstats
path: root/Parser
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-04-03 19:09:02 (GMT)
committerGuido van Rossum <guido@python.org>1991-04-03 19:09:02 (GMT)
commit71f477c797da1f9cfb1fc82b2940d2141981f8c8 (patch)
treed9db86f2c60938884cc2b2d9ee77ec1da4132240 /Parser
parent7a904edcbf114924df0b15eb871d738834805bd5 (diff)
downloadcpython-71f477c797da1f9cfb1fc82b2940d2141981f8c8.zip
cpython-71f477c797da1f9cfb1fc82b2940d2141981f8c8.tar.gz
cpython-71f477c797da1f9cfb1fc82b2940d2141981f8c8.tar.bz2
Added forward declarations.
Diffstat (limited to 'Parser')
-rw-r--r--Parser/pgen.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/Parser/pgen.c b/Parser/pgen.c
index a8c016b..bd1610e 100644
--- a/Parser/pgen.c
+++ b/Parser/pgen.c
@@ -58,6 +58,12 @@ typedef struct _nfa {
int nf_start, nf_finish;
} nfa;
+/* Forward */
+static compile_rhs PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
+static compile_alt PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
+static compile_item PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
+static compile_atom PROTO((labellist *ll, nfa *nf, node *n, int *pa, int *pb));
+
static int
addnfastate(nf)
nfa *nf;
@@ -114,6 +120,9 @@ typedef struct _nfagrammar {
labellist gr_ll;
} nfagrammar;
+/* Forward */
+static compile_rule PROTO((nfagrammar *gr, node *n));
+
static nfagrammar *
newnfagrammar()
{
@@ -420,6 +429,12 @@ typedef struct _ss_dfa {
ss_state *sd_state;
} ss_dfa;
+/* Forward */
+static printssdfa PROTO((int xx_nstates, ss_state *xx_state, int nbits,
+ labellist *ll, char *msg));
+static simplify PROTO((int xx_nstates, ss_state *xx_state));
+static convert PROTO((dfa *d, int xx_nstates, ss_state *xx_state));
+
static
makedfa(gr, nf, d)
nfagrammar *gr;