Lines Matching defs:line

157   int line;                /* Line number at which code begins */
562 void myassert(file,line)
564 int line;
566 fprintf(stderr,"Assertion failed on line %d of file \"%s\"\n",line,file);
1161 ErrorMsg(lemp->filename,rp->line,"Nonterminal \"%s\" has no rules.",
1261 ** of the line.
1264 #define LINEWIDTH 79 /* Max width of any output line */
1265 #define PREFIXLIMIT 30 /* Max width of the prefix on each line */
1276 /* Prepare a prefix to be prepended to every output line */
1318 /* The main program. Parse the command line and do it... */
1392 /* Generate a reprint of the grammar, if requested on the command line */
1576 ** Print the command line with a carrot pointing to the k-th character
1622 static char emsg[] = "Command line syntax error: ";
1625 ** Process a flag command line argument.
1659 ** Process a command line switch which has an argument.
1768 fprintf(err,"Valid command line options for \"%s\" are:\n",*a);
1931 fragment which begins on this line.");
1935 "Code fragment beginning on this line is not the first \
1939 psp->prevrule->line = psp->tokenlineno;
1962 "Precedence mark on this line is not the first \
2329 if( c=='\n' ) lineno++; /* Keep track of the line number */
2355 "String starting on this line is not terminated before the end of the file.");
2394 "C code starting on this line is not terminated before the end of the file.");
2774 ** a line is seen which begins with "%%". The line number is
2787 char line[LINESIZE];
2788 while( fgets(line,LINESIZE,in) && (line[0]!='%' || line[1]!='%') ){
2792 for(i=0; line[i]; i++){
2793 if( line[i]=='P' && strncmp(&line[i],"Parse",5)==0
2794 && (i==0 || !isalpha(line[i-1]))
2796 if( i>iStart ) fprintf(out,"%.*s",i-iStart,&line[iStart]);
2803 fprintf(out,"%s",&line[iStart]);
2855 fprintf(out,"#line %d \"%s\"\n",strln,lemp->filename); (*lineno)++;
2861 fprintf(out,"\n#line %d \"%s\"\n",*lineno+2,lemp->outname); (*lineno)+=2;
2881 fprintf(out,"#line %d \"%s\"\n{",lemp->tokendestln,lemp->filename);
2884 fprintf(out,"#line %d \"%s\"\n{",sp->destructorln,lemp->filename);
2888 fprintf(out,"#line %d \"%s\"\n{",lemp->vardestln,lemp->filename);
2902 fprintf(out,"}\n#line %d \"%s\"\n",*lineno,lemp->outname);
2943 fprintf(out,"#line %d \"%s\"\n{",rp->line,lemp->filename);
2970 fprintf(out,"}\n#line %d \"%s\"\n",*lineno,lemp->outname);
3013 int *plineno; /* Pointer to the line number */
3016 int lineno = *plineno; /* The line number of the output */
3164 char line[LINESIZE];
3453 sprintf(line,"\"%s\",",lemp->symbols[i]->name);
3454 fprintf(out," %-15s",line);
3559 char line[LINESIZE];
3567 for(i=1; i<lemp->nterminal && fgets(line,LINESIZE,in); i++){
3569 if( strcmp(line,pattern) ) break;