[Python-checkins] CVS: python/dist/src/Parser firstsets.c,2.12,2.13 pgen.c,2.18,2.19 pgenmain.c,2.23,2.24

Guido van Rossum gvanrossum@users.sourceforge.net
Tue, 11 Sep 2001 09:43:18 -0700


Update of /cvsroot/python/python/dist/src/Parser
In directory usw-pr-cvs1:/tmp/cvs-serv17500

Modified Files:
	firstsets.c pgen.c pgenmain.c 
Log Message:
Silence parser generator output.

Index: firstsets.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/firstsets.c,v
retrieving revision 2.12
retrieving revision 2.13
diff -C2 -d -r2.12 -r2.13
*** firstsets.c	2000/09/01 23:29:28	2.12
--- firstsets.c	2001/09/11 16:43:16	2.13
***************
*** 16,21 ****
  	int i;
  	dfa *d;
! 	
! 	printf("Adding FIRST sets ...\n");
  	for (i = 0; i < g->g_ndfas; i++) {
  		d = &g->g_dfa[i];
--- 16,22 ----
  	int i;
  	dfa *d;
! 
! 	if (Py_DebugFlag)
! 		printf("Adding FIRST sets ...\n");
  	for (i = 0; i < g->g_ndfas; i++) {
  		d = &g->g_dfa[i];

Index: pgen.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/pgen.c,v
retrieving revision 2.18
retrieving revision 2.19
diff -C2 -d -r2.18 -r2.19
*** pgen.c	2000/09/01 23:29:28	2.18
--- pgen.c	2001/09/11 16:43:16	2.19
***************
*** 150,155 ****
  	nfagrammar *gr;
  	int i;
! 	
! 	printf("Compiling (meta-) parse tree into NFA grammar\n");
  	gr = newnfagrammar();
  	REQ(n, MSTART);
--- 150,156 ----
  	nfagrammar *gr;
  	int i;
! 
! 	if (Py_DebugFlag)
! 		printf("Compiling (meta-) parse tree into NFA grammar\n");
  	gr = newnfagrammar();
  	REQ(n, MSTART);
***************
*** 646,651 ****
  			printf("Dump of NFA for '%s' ...\n", nf->nf_name);
  			dumpnfa(&gr->gr_ll, nf);
  		}
- 		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);
--- 647,652 ----
  			printf("Dump of NFA for '%s' ...\n", nf->nf_name);
  			dumpnfa(&gr->gr_ll, nf);
+ 			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);

Index: pgenmain.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Parser/pgenmain.c,v
retrieving revision 2.23
retrieving revision 2.24
diff -C2 -d -r2.23 -r2.24
*** pgenmain.c	2001/02/16 03:57:53	2.23
--- pgenmain.c	2001/09/11 16:43:16	2.24
***************
*** 63,67 ****
  		Py_Exit(1);
  	}
! 	printf("Writing %s ...\n", graminit_c);
  	printgrammar(g, fp);
  	fclose(fp);
--- 63,68 ----
  		Py_Exit(1);
  	}
! 	if (Py_DebugFlag)
! 		printf("Writing %s ...\n", graminit_c);
  	printgrammar(g, fp);
  	fclose(fp);
***************
*** 71,75 ****
  		Py_Exit(1);
  	}
! 	printf("Writing %s ...\n", graminit_h);
  	printnonterminals(g, fp);
  	fclose(fp);
--- 72,77 ----
  		Py_Exit(1);
  	}
! 	if (Py_DebugFlag)
! 		printf("Writing %s ...\n", graminit_h);
  	printnonterminals(g, fp);
  	fclose(fp);