2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
9 static char rcs_id[] = "$Id: parsepar.c,v 1.3 1994/06/24 11:30:59 ceriel Exp $" ;
13 int listing; /* -l listing required */
14 int debug; /* -d compiler debugging */
15 int wflag=0; /* -w no warnings */
16 int traceflag=0; /* generate line tracing code */
17 int nolins=0; /* generate no LIN statements */
21 parseparams(argc,argv)
31 fprint(STDERR,"usage %s <flags> <file> <file> <source>\n",
41 break; /* parser debugging */
42 case 't': traceflag++;
43 break; /* line tracing */
44 case 'h': /* split EM file */
46 "h option not implemented\n");
51 break; /* no EM lin statements */
53 break; /* generate full listing */
55 break; /* no warnings */
58 while (*p) switch(*p++) {
60 BEMINTSIZE = *p++ - '0';
63 BEMPTRSIZE = *p++ - '0';
66 BEMFLTSIZE = *p++ - '0';
75 case 0: inpfile= argv[i]; break;
76 case 1: outfile= argv[i]; break;
77 case 2: /* should be the source file
81 default:fatal("Too many file arguments") ;
84 if (files < 3) fatal("Too few file arguments");