Lines Matching defs:s

207 /* Each state of the generated parser's finite state machine
566 fprintf(stderr,"Assertion failed on line %d of file \"%s\"\n",line,file);
677 "The specified start symbol \"%s\" is not \
678 in a nonterminal of the grammar. \"%s\" will be used as the start \
695 "The start symbol \"%s\" occurs on the \
1161 ErrorMsg(lemp->filename,rp->line,"Nonterminal \"%s\" has no rules.",
1278 sprintf(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
1280 sprintf(prefix,"%.*s: ",PREFIXLIMIT-10,filename);
1289 /* Remove trailing '\n's from the error message. */
1300 fprintf(stdout,"%s%.*s\n",prefix,end,&errmsg[base]);
1336 {OPT_FLAG, "s", (char*)&statistics, "Print parser stats to standard output."},
1586 if( argv[0] ) fprintf(err,"%s",argv[0]);
1589 fprintf(err," %s",argv[i]);
1593 for(; argv[i]; i++) fprintf(err," %s",argv[i]);
1595 fprintf(err,"\n%*s^-- here\n",spcnt,"");
1768 fprintf(err,"Valid command line options for \"%s\" are:\n",*a);
1833 fprintf(errstream," -%-*s %s\n",max,op[i].label,op[i].message);
1837 fprintf(errstream," %s=<integer>%*s %s\n",op[i].label,
1842 fprintf(errstream," %s=<real>%*s %s\n",op[i].label,
1847 fprintf(errstream," %s=<string>%*s %s\n",op[i].label,
1909 printf("%s:%d: Token=[%s] state=%d\n",psp->filename,psp->tokenlineno,
1946 "Token \"%s\" should be either \"%%\" or a nonterminal name.",
1958 "There is no prior rule to assign precedence \"[%s]\".",x);
1985 "Expected to see a \":\" following the LHS symbol \"%s\".",
1997 "\"%s\" is not a valid alias for the LHS \"%s\"\n",
2008 "Missing \")\" following LHS alias name \"%s\".",psp->lhsalias);
2018 "Missing \"->\" following: \"%s(%s)\".",
2064 "Too many symbol on RHS or rule beginning at \"%s\".",
2077 "Illegal character on RHS of rule: \"%s\".",x);
2088 "\"%s\" is not a valid alias for the RHS symbol \"%s\"\n",
2099 "Missing \")\" following LHS alias name \"%s\".",psp->lhsalias);
2169 "Unknown declaration keyword: \"%%%s\".",x);
2175 "Illegal declaration keyword: \"%s\".",x);
2214 "Symbol \"%s\" has already be given a precedence.",x);
2222 "Can't assign a precedence to \"%s\".",x);
2230 "The argument \"%s\" to declaration \"%%%s\" is not the first.",
2241 "Illegal argument to %%%s: %s",psp->declkeyword,x);
2251 "%%fallback argument \"%s\" should be a token", x);
2259 "More than one fallback assigned to token %s", x);
2529 fprintf(stderr,"Can't open file \"%s\".\n",lemp->outname);
2544 printf("// Reprint of input file \"%s\".\n// Symbols:\n",lemp->filename);
2559 printf(" %3d %-*.*s",j,maxlen,maxlen,sp->name);
2564 printf("%s",rp->lhs->name);
2565 /* if( rp->lhsalias ) printf("(%s)",rp->lhsalias); */
2568 printf(" %s",rp->rhs[i]->name);
2569 /* if( rp->rhsalias[i] ) printf("(%s)",rp->rhsalias[i]); */
2572 if( rp->precsym ) printf(" [%s]",rp->precsym->name);
2573 /* if( rp->code ) printf("\n %s",rp->code); */
2585 fprintf(fp,"%s ::=",rp->lhs->name);
2589 fprintf(fp," %s",rp->rhs[i]->name);
2604 fprintf(out,"%12s[","");
2607 fprintf(out,"%s%s",spacer,lemp->symbols[i]->name);
2621 fprintf(out,"%12s%s (state %2d) ","",tag,plp->cfp->stp->index);
2636 fprintf(fp,"%*s shift %d",indent,ap->sp->name,ap->x.stp->index);
2639 fprintf(fp,"%*s reduce %d",indent,ap->sp->name,ap->x.rp->index);
2642 fprintf(fp,"%*s accept",indent,ap->sp->name);
2645 fprintf(fp,"%*s error",indent,ap->sp->name);
2648 fprintf(fp,"%*s reduce %-3d ** Parsing conflict **",
2682 fprintf(fp," %5s ",buf);
2727 if( path ) sprintf(path,"%s/%s",argv0,name);
2740 sprintf(path,"%s/%s",pathlist,name);
2796 if( i>iStart ) fprintf(out,"%.*s",i-iStart,&line[iStart]);
2797 fprintf(out,"%s",name);
2803 fprintf(out,"%s",&line[iStart]);
2820 sprintf(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
2822 sprintf(buf,"%s.lt",lemp->filename);
2832 fprintf(stderr,"Can't find the parser driver template file \"%s\".\n",
2839 fprintf(stderr,"Can't open the template file \"%s\".\n",templatename);
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);
2976 "Label \"%s\" for \"%s(%s)\" is never used.",
2986 "Label %s for \"%s(%s)\" is never used.",
2994 fprintf(out," /* No destructor defined for %s */\n",
3004 ** Print the definition of the union used for the parser's data stack.
3098 fprintf(out,"#define %sTOKENTYPE %s\n",name,
3105 fprintf(out," %s yy%d;\n",types[i],i+1); lineno++;
3190 fprintf(out,"#include \"%s\"\n", name); lineno++;
3202 fprintf(out,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
3211 fprintf(out,"#define YYCODETYPE %s\n",
3214 fprintf(out,"#define YYACTIONTYPE %s\n",
3220 "Illegal stack size: [%s]. The stack size should be an integer constant.",
3225 fprintf(out,"#define YYSTACKDEPTH %s\n",lemp->stacksize); lineno++;
3238 fprintf(out,"#define %sARG_SDECL %s;\n",name,lemp->arg); lineno++;
3239 fprintf(out,"#define %sARG_PDECL ,%s\n",name,lemp->arg); lineno++;
3240 fprintf(out,"#define %sARG_FETCH %s = yypParser->%s\n",
3242 fprintf(out,"#define %sARG_STORE yypParser->%s = %s\n",
3377 fprintf(out, "static %s yy_shift_ofst[] = {\n",
3398 fprintf(out, "static %s yy_reduce_ofst[] = {\n",
3440 fprintf(out, " 0, /* %10s => nothing */\n", p->name);
3442 fprintf(out, " %3d, /* %10s => %s */\n", p->fallback->index,
3453 sprintf(line,"\"%s\",",lemp->symbols[i]->name);
3454 fprintf(out," %-15s",line);
3466 fprintf(out," /* %3d */ \"%s ::=", i, rp->lhs->name);
3467 for(j=0; j<rp->nrhs; j++) fprintf(out," %s",rp->rhs[j]->name);
3568 sprintf(pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
3580 fprintf(out,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
3658 char *s;
3660 s = (char*)malloc( size );
3661 if( s==0 ){
3665 for(i=0; i<size; i++) s[i] = 0;
3666 return s;
3670 void SetFree(s)
3671 char *s;
3673 free(s);
3678 int SetAdd(s,e)
3679 char *s;
3683 rv = s[e];
3684 s[e] = 1;