File: tcerror.c

package info (click to toggle)
magnus 20060324-5.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,436 kB
  • ctags: 20,462
  • sloc: cpp: 130,217; ansic: 37,090; tcl: 10,970; perl: 1,109; makefile: 966; sh: 403; yacc: 372; csh: 57; awk: 33; asm: 10
file content (21 lines) | stat: -rw-r--r-- 580 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* file to give error message */
yyerror(n)
int	n;
{ 	switch (n) 
	{	case 1: fprintf(fout," expect 1 for identity\n");
			return; 
		case 2: fprintf(fout," expect positive number\n");
			return; 
		case 3: fprintf(fout," insufficient space \n"); 
			return; 
		case 4: fprintf(fout," expect ';' for ending group generaters\n");
			return;
		case 5: fprintf(fout," there are not so many relators or subg gens\n"); 
			return;
		case 6: fprintf(fout," expect group gens or ';' \n");
			return;
		case 7: fprintf(fout," could not open input file.\n");
	}
	return; 
} 
/* end file */