Lines Matching refs:fprintf
341 fprintf(stderr,"Unable to allocate memory for a new parser action.");
439 fprintf(stderr,"Unable to allocate memory for a new acttab.");
454 fprintf(stderr,"malloc failed\n");
496 fprintf(stderr,"malloc failed\n");
566 fprintf(stderr,"Assertion failed on line %d of file \"%s\"\n",line,file);
1048 fprintf(stderr,"Unable to allocate memory for a new configuration.");
1300 fprintf(stdout,"%s%.*s\n",prefix,end,&errmsg[base]);
1313 fprintf(stderr,"Out of memory. Aborting...\n");
1349 fprintf(stderr,"Exactly one filename argument is required.\n");
1377 fprintf(stderr,"Empty grammar.\n");
1442 fprintf(stderr,"%d parsing conflicts.\n",lem.nconflict);
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,"");
1597 fprintf(err,"\n%*shere --^\n",spcnt-7,"");
1640 fprintf(err,"%sundefined option.\n",emsg);
1650 fprintf(err,"%smissing argument on switch.\n",emsg);
1679 fprintf(err,"%sundefined option.\n",emsg);
1689 fprintf(err,"%soption requires an argument.\n",emsg);
1699 fprintf(err,"%sillegal character in floating-point argument.\n",emsg);
1710 fprintf(err,"%sillegal character in integer argument.\n",emsg);
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,
2436 fprintf(stderr,
2505 fprintf(stderr,"Can't allocate space for a filename.\n");
2529 fprintf(stderr,"Can't open file \"%s\".\n",lemp->outname);
2585 fprintf(fp,"%s ::=",rp->lhs->name);
2587 if( i==cfp->dot ) fprintf(fp," *");
2589 fprintf(fp," %s",rp->rhs[i]->name);
2604 fprintf(out,"%12s[","");
2607 fprintf(out,"%s%s",spacer,lemp->symbols[i]->name);
2611 fprintf(out,"]\n");
2621 fprintf(out,"%12s%s (state %2d) ","",tag,plp->cfp->stp->index);
2623 fprintf(out,"\n");
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 **",
2672 fprintf(fp," \b");
2675 fprintf(fp,"State %d:\n",stp->index);
2682 fprintf(fp," %5s ",buf);
2684 fprintf(fp," ");
2687 fprintf(fp,"\n");
2696 fprintf(fp,"\n");
2698 if( PrintAction(ap,fp,30) ) fprintf(fp,"\n");
2700 fprintf(fp,"\n");
2796 if( i>iStart ) fprintf(out,"%.*s",i-iStart,&line[iStart]);
2797 fprintf(out,"%s",name);
2803 fprintf(out,"%s",&line[iStart]);
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);
2894 fprintf(out,"(yypminor->yy%d)",sp->dtnum);
2902 fprintf(out,"}\n#line %d \"%s\"\n",*lineno,lemp->outname);
2943 fprintf(out,"#line %d \"%s\"\n{",rp->line,lemp->filename);
2951 fprintf(out,"yygotominor.yy%d",rp->lhs->dtnum);
2957 fprintf(out,"yymsp[%d].minor.yy%d",i-rp->nrhs+1,rp->rhs[i]->dtnum);
2970 fprintf(out,"}\n#line %d \"%s\"\n",*lineno,lemp->outname);
2991 fprintf(out," yy_destructor(%d,&yymsp[%d].minor);\n",
2994 fprintf(out," /* No destructor defined for %s */\n",
3042 fprintf(stderr,"Out of memory.\n");
3087 fprintf(stderr,"Out of memory.\n");
3097 if( mhflag ){ fprintf(out,"#if INTERFACE\n"); lineno++; }
3098 fprintf(out,"#define %sTOKENTYPE %s\n",name,
3100 if( mhflag ){ fprintf(out,"#endif\n"); lineno++; }
3101 fprintf(out,"typedef union {\n"); lineno++;
3102 fprintf(out," %sTOKENTYPE yy0;\n",name); lineno++;
3105 fprintf(out," %s yy%d;\n",types[i],i+1); lineno++;
3108 fprintf(out," int yy%d;\n",lemp->errsym->dtnum); lineno++;
3111 fprintf(out,"} YYMINORTYPE;\n"); lineno++;
3190 fprintf(out,"#include \"%s\"\n", name); lineno++;
3198 fprintf(out,"#if INTERFACE\n"); lineno++;
3202 fprintf(out,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
3205 fprintf(out,"#endif\n"); lineno++;
3210 fprintf(out,"/* \001 */\n");
3211 fprintf(out,"#define YYCODETYPE %s\n",
3213 fprintf(out,"#define YYNOCODE %d\n",lemp->nsymbol+1); lineno++;
3214 fprintf(out,"#define YYACTIONTYPE %s\n",
3225 fprintf(out,"#define YYSTACKDEPTH %s\n",lemp->stacksize); lineno++;
3227 fprintf(out,"#define YYSTACKDEPTH 100\n"); lineno++;
3230 fprintf(out,"#if INTERFACE\n"); 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",
3245 fprintf(out,"#define %sARG_SDECL\n",name); lineno++;
3246 fprintf(out,"#define %sARG_PDECL\n",name); lineno++;
3247 fprintf(out,"#define %sARG_FETCH\n",name); lineno++;
3248 fprintf(out,"#define %sARG_STORE\n",name); lineno++;
3251 fprintf(out,"#endif\n"); lineno++;
3253 fprintf(out,"#define YYNSTATE %d\n",lemp->nstate); lineno++;
3254 fprintf(out,"#define YYNRULE %d\n",lemp->nrule); lineno++;
3255 fprintf(out,"#define YYERRORSYMBOL %d\n",lemp->errsym->index); lineno++;
3256 fprintf(out,"#define YYERRSYMDT yy%d\n",lemp->errsym->dtnum); lineno++;
3258 fprintf(out,"#define YYFALLBACK 1\n"); lineno++;
3277 fprintf(stderr,"malloc failed\n");
3343 fprintf(out,"static YYACTIONTYPE yy_action[] = {\n"); lineno++;
3348 if( j==0 ) fprintf(out," /* %5d */ ", i);
3349 fprintf(out, " %4d,", action);
3351 fprintf(out, "\n"); lineno++;
3357 fprintf(out, "};\n"); lineno++;
3360 fprintf(out,"static YYCODETYPE yy_lookahead[] = {\n"); lineno++;
3364 if( j==0 ) fprintf(out," /* %5d */ ", i);
3365 fprintf(out, " %4d,", la);
3367 fprintf(out, "\n"); lineno++;
3373 fprintf(out, "};\n"); lineno++;
3376 fprintf(out, "#define YY_SHIFT_USE_DFLT (%d)\n", mnTknOfst-1); lineno++;
3377 fprintf(out, "static %s yy_shift_ofst[] = {\n",
3385 if( j==0 ) fprintf(out," /* %5d */ ", i);
3386 fprintf(out, " %4d,", ofst);
3388 fprintf(out, "\n"); lineno++;
3394 fprintf(out, "};\n"); lineno++;
3397 fprintf(out, "#define YY_REDUCE_USE_DFLT (%d)\n", mnNtOfst-1); lineno++;
3398 fprintf(out, "static %s yy_reduce_ofst[] = {\n",
3406 if( j==0 ) fprintf(out," /* %5d */ ", i);
3407 fprintf(out, " %4d,", ofst);
3409 fprintf(out, "\n"); lineno++;
3415 fprintf(out, "};\n"); lineno++;
3418 fprintf(out, "static YYACTIONTYPE yy_default[] = {\n"); lineno++;
3422 if( j==0 ) fprintf(out," /* %5d */ ", i);
3423 fprintf(out, " %4d,", stp->iDflt);
3425 fprintf(out, "\n"); lineno++;
3431 fprintf(out, "};\n"); lineno++;
3440 fprintf(out, " 0, /* %10s => nothing */\n", p->name);
3442 fprintf(out, " %3d, /* %10s => %s */\n", p->fallback->index,
3454 fprintf(out," %-15s",line);
3455 if( (i&3)==3 ){ fprintf(out,"\n"); lineno++; }
3457 if( (i&3)!=0 ){ fprintf(out,"\n"); lineno++; }
3466 fprintf(out," /* %3d */ \"%s ::=", i, rp->lhs->name);
3467 for(j=0; j<rp->nrhs; j++) fprintf(out," %s",rp->rhs[j]->name);
3468 fprintf(out,"\",\n"); lineno++;
3480 fprintf(out," case %d:\n",sp->index); lineno++;
3485 fprintf(out," break;\n"); lineno++;
3491 fprintf(out," case %d:\n",sp->index); lineno++;
3493 fprintf(out," break;\n"); lineno++;
3501 fprintf(out," case %d:\n",sp->index); lineno++;
3506 fprintf(out," break;\n"); lineno++;
3521 fprintf(out," { %d, %d },\n",rp->lhs->index,rp->nrhs); lineno++;
3527 fprintf(out," case %d:\n",rp->index); lineno++;
3529 fprintf(out," break;\n"); lineno++;
3580 fprintf(out,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);