summaryrefslogtreecommitdiffstats
path: root/Parser/pgen.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-09-11 16:43:16 (GMT)
committerGuido van Rossum <guido@python.org>2001-09-11 16:43:16 (GMT)
commit25dfe2c09599228d57941a8cf8c0040670f389fd (patch)
treec632168d0be61192d5b760419fdf815794797d77 /Parser/pgen.c
parent2732cb42694251f3c0dd38a115c2fce84bc5c931 (diff)
downloadcpython-25dfe2c09599228d57941a8cf8c0040670f389fd.zip
cpython-25dfe2c09599228d57941a8cf8c0040670f389fd.tar.gz
cpython-25dfe2c09599228d57941a8cf8c0040670f389fd.tar.bz2
Silence parser generator output.
Diffstat (limited to 'Parser/pgen.c')
-rw-r--r--Parser/pgen.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/Parser/pgen.c b/Parser/pgen.c
index 961f3bc..47c817f 100644
--- a/Parser/pgen.c
+++ b/Parser/pgen.c
@@ -149,8 +149,9 @@ metacompile(node *n)
{
nfagrammar *gr;
int i;
-
- printf("Compiling (meta-) parse tree into NFA grammar\n");
+
+ if (Py_DebugFlag)
+ printf("Compiling (meta-) parse tree into NFA grammar\n");
gr = newnfagrammar();
REQ(n, MSTART);
i = n->n_nchildren - 1; /* Last child is ENDMARKER */
@@ -645,8 +646,8 @@ maketables(nfagrammar *gr)
if (Py_DebugFlag) {
printf("Dump of NFA for '%s' ...\n", nf->nf_name);
dumpnfa(&gr->gr_ll, nf);
+ printf("Making DFA for '%s' ...\n", nf->nf_name);
}
- printf("Making DFA for '%s' ...\n", nf->nf_name);
d = adddfa(g, nf->nf_type, nf->nf_name);
makedfa(gr, gr->gr_nfa[i], d);
}