Lines Matching refs:name

256   const char *name;        /* Name of the symbol */  member
404 char *name; /* Name of the generated parser */ member
917 "symbol instead.",lemp->start,lemp->startRule->lhs->name); in FindStates()
938 "does not work properly.",sp->name); in FindStates()
1417 sp->name); in Configlist_closure()
1711 assert( strcmp(lem.symbols[i-1]->name,"{default}")==0 ); in main()
1713 for(i=1; ISUPPER(lem.symbols[i]->name[0]); i++); in main()
2343 psp->lhs->name); in parseonetoken()
2355 x,psp->lhs->name); in parseonetoken()
2376 psp->lhs->name,psp->lhsalias); in parseonetoken()
2442 msp->name = origsp->name; in parseonetoken()
2449 if( ISLOWER(x[1]) || ISLOWER(msp->subsym[0]->name[0]) ){ in parseonetoken()
2470 x,psp->rhs[psp->nrhs-1]->name); in parseonetoken()
2493 psp->declargslot = &(psp->gp->name); in parseonetoken()
3181 char *name; in file_makename() local
3194 name = (char*)malloc( sz ); in file_makename()
3195 if( name==0 ){ in file_makename()
3199 name[0] = 0; in file_makename()
3201 lemon_strcpy(name, outputDir); in file_makename()
3202 lemon_strcat(name, "/"); in file_makename()
3204 lemon_strcat(name,filename); in file_makename()
3205 cp = strrchr(name,'.'); in file_makename()
3207 lemon_strcat(name,suffix); in file_makename()
3208 return name; in file_makename()
3236 fprintf(out, "%s",rp->lhs->name); in rule_print()
3242 fprintf(out," %s", sp->subsym[0]->name); in rule_print()
3244 fprintf(out,"|%s", sp->subsym[j]->name); in rule_print()
3247 fprintf(out," %s", sp->name); in rule_print()
3264 len = lemonStrlen(sp->name); in Reprint()
3275 printf(" %3d %-*.*s",j,maxlen,maxlen,sp->name); in Reprint()
3282 if( rp->precsym ) printf(" [%s]",rp->precsym->name); in Reprint()
3293 fprintf(fp,"%s ::=",rp->lhs->name); in RulePrint()
3299 fprintf(fp," %s", sp->subsym[0]->name); in RulePrint()
3301 fprintf(fp,"|%s",sp->subsym[j]->name); in RulePrint()
3304 fprintf(fp," %s", sp->name); in RulePrint()
3329 fprintf(out,"%s%s",spacer,lemp->symbols[i]->name);
3363 fprintf(fp,"%*s shift %-7d",indent,ap->sp->name,stp->statenum); in PrintAction()
3368 fprintf(fp,"%*s reduce %-7d",indent,ap->sp->name,rp->iRule); in PrintAction()
3374 fprintf(fp,"%*s shift-reduce %-7d",indent,ap->sp->name,rp->iRule); in PrintAction()
3379 fprintf(fp,"%*s accept",indent,ap->sp->name); in PrintAction()
3382 fprintf(fp,"%*s error",indent,ap->sp->name); in PrintAction()
3387 indent,ap->sp->name,ap->x.rp->iRule); in PrintAction()
3391 indent,ap->sp->name,ap->x.stp->statenum); in PrintAction()
3396 indent,ap->sp->name,ap->x.stp->statenum); in PrintAction()
3404 indent,ap->sp->name,ap->x.rp->iRule); in PrintAction()
3414 fprintf(fp," /* because %s==%s */", ap->sp->name, ap->spOpt->name); in PrintAction()
3468 fprintf(fp, " %3d: %s", i, sp->name); in ReportOutput()
3476 fprintf(fp, " %s", lemp->symbols[j]->name); in ReportOutput()
3490 w = (int)strlen(sp->name); in ReportOutput()
3499 fprintf(fp, "%s", sp->name); in ReportOutput()
3511 rp->precsym->name, rp->precsym->prec); in ReportOutput()
3521 PRIVATE char *pathsearch(char *argv0, char *name, int modemask) in pathsearch() argument
3537 path = (char *)malloc( lemonStrlen(argv0) + lemonStrlen(name) + 2 ); in pathsearch()
3538 if( path ) lemon_sprintf(path,"%s/%s",argv0,name); in pathsearch()
3544 path = (char *)malloc( lemonStrlen(pathlist)+lemonStrlen(name)+2 ); in pathsearch()
3552 lemon_sprintf(path,"%s/%s",pathbuf,name); in pathsearch()
3604 PRIVATE void tplt_xfer(char *name, FILE *in, FILE *out, int *lineno) in tplt_xfer() argument
3611 if( name ){ in tplt_xfer()
3617 fprintf(out,"%s",name); in tplt_xfer()
3898 rp->lhs->name, rp->lhsalias, rp->rhs[0]->name, rp->rhsalias[0]); in translate_code()
3981 rp->lhsalias,rp->lhs->name,rp->lhsalias); in translate_code()
3996 rp->rhs[i]->name, rp->rhsalias[i]); in translate_code()
4012 rp->rhsalias[i],rp->rhs[i]->name,rp->rhsalias[i]); in translate_code()
4105 const char *name; /* Name of the parser */ in print_stack_union() local
4185 name = lemp->name ? lemp->name : "Parse"; in print_stack_union()
4188 fprintf(out,"#define %sTOKENTYPE %s\n",name, in print_stack_union()
4193 fprintf(out," %sTOKENTYPE yy0;\n",name); lineno++; in print_stack_union()
4271 fprintf(out,"%s ::=", rp->lhs->name); in writeRuleText()
4275 fprintf(out," %s", sp->name); in writeRuleText()
4278 fprintf(out," %s", sp->subsym[0]->name); in writeRuleText()
4280 fprintf(out,"|%s",sp->subsym[k]->name); in writeRuleText()
4303 const char *name; in ReportTable() local
4346 i, lemp->symbols[i]->name, in ReportTable()
4414 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4424 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4432 fprintf(out,"#ifndef %s%s\n", prefix, lemp->symbols[1]->name); in ReportTable()
4435 fprintf(out,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i); in ReportTable()
4439 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4462 name = lemp->name ? lemp->name : "Parse"; in ReportTable()
4467 fprintf(out,"#define %sARG_SDECL %s;\n",name,lemp->arg); lineno++; in ReportTable()
4468 fprintf(out,"#define %sARG_PDECL ,%s\n",name,lemp->arg); lineno++; in ReportTable()
4469 fprintf(out,"#define %sARG_PARAM ,%s\n",name,&lemp->arg[i]); lineno++; in ReportTable()
4471 name,lemp->arg,&lemp->arg[i]); lineno++; in ReportTable()
4473 name,&lemp->arg[i],&lemp->arg[i]); lineno++; in ReportTable()
4475 fprintf(out,"#define %sARG_SDECL\n",name); lineno++; in ReportTable()
4476 fprintf(out,"#define %sARG_PDECL\n",name); lineno++; in ReportTable()
4477 fprintf(out,"#define %sARG_PARAM\n",name); lineno++; in ReportTable()
4478 fprintf(out,"#define %sARG_FETCH\n",name); lineno++; in ReportTable()
4479 fprintf(out,"#define %sARG_STORE\n",name); lineno++; in ReportTable()
4485 fprintf(out,"#define %sCTX_SDECL %s;\n",name,lemp->ctx); lineno++; in ReportTable()
4486 fprintf(out,"#define %sCTX_PDECL ,%s\n",name,lemp->ctx); lineno++; in ReportTable()
4487 fprintf(out,"#define %sCTX_PARAM ,%s\n",name,&lemp->ctx[i]); lineno++; in ReportTable()
4489 name,lemp->ctx,&lemp->ctx[i]); lineno++; in ReportTable()
4491 name,&lemp->ctx[i],&lemp->ctx[i]); lineno++; in ReportTable()
4493 fprintf(out,"#define %sCTX_SDECL\n",name); lineno++; in ReportTable()
4494 fprintf(out,"#define %sCTX_PDECL\n",name); lineno++; in ReportTable()
4495 fprintf(out,"#define %sCTX_PARAM\n",name); lineno++; in ReportTable()
4496 fprintf(out,"#define %sCTX_FETCH\n",name); lineno++; in ReportTable()
4497 fprintf(out,"#define %sCTX_STORE\n",name); lineno++; in ReportTable()
4604 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4742 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4755 fprintf(out, " 0, /* %10s => nothing */\n", p->name); in ReportTable()
4758 p->name, p->fallback->name); in ReportTable()
4763 tplt_xfer(lemp->name, in, out, &lineno); in ReportTable()
4768 fprintf(out," /* %4d */ \"%s\",\n",i, lemp->symbols[i]->name); lineno++; in ReportTable()
4770 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4782 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4797 fprintf(out," case %d: /* %s */\n", sp->index, sp->name); lineno++; in ReportTable()
4816 fprintf(out," case %d: /* %s */\n", sp->index, sp->name); lineno++; in ReportTable()
4828 fprintf(out," case %d: /* %s */\n", sp->index, sp->name); lineno++; in ReportTable()
4837 sp2->index, sp2->name); lineno++; in ReportTable()
4845 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4849 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4862 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4868 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4921 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4925 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4929 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4933 tplt_xfer(lemp->name,in,out,&lineno); in ReportTable()
4961 prefix,lemp->symbols[i]->name,i); in ReportHeader()
4974 fprintf(out,"#define %s%-30s %3d\n",prefix,lemp->symbols[i]->name,i); in ReportHeader()
5386 sp->name = Strsafe(x); in Symbol_new()
5398 Symbol_insert(sp,sp->name); in Symbol_new()
5422 int i1 = a->type==MULTITERMINAL ? 3 : a->name[0]>'Z' ? 2 : 1; in Symbolcmpp()
5423 int i2 = b->type==MULTITERMINAL ? 3 : b->name[0]>'Z' ? 2 : 1; in Symbolcmpp()