Lines Matching refs:symbol

254 struct symbol {  struct
259 struct symbol *fallback; /* fallback token in case this token doesn't parse */ argument
278 struct symbol **subsym; /* Array of constituent symbols */ argument
284 struct symbol *lhs; /* Left-hand side of the rule */
289 struct symbol **rhs; /* The RHS symbols */
295 struct symbol *precsym; /* Precedence symbol for this rule */
345 struct symbol *sp; /* The look-ahead symbol */
351 struct symbol *spOpt; /* SHIFTREDUCE optimization to this symbol */
399 struct symbol **symbols; /* Sorted array of pointers to symbols */
401 struct symbol *errsym; /* The error symbol */
402 struct symbol *wildcard; /* Token that matches anything */
459 struct symbol *Symbol_new(const char *);
462 int Symbol_insert(struct symbol *, const char *);
463 struct symbol *Symbol_find(const char *);
464 struct symbol *Symbol_Nth(int);
466 struct symbol **Symbol_arrayof(void);
544 struct symbol *sp, in Action_add()
817 struct symbol *sp = rp->rhs[i]; in FindRulePrecedences()
858 struct symbol *sp = rp->rhs[i]; in FindFirstSets()
871 struct symbol *s1, *s2; in FindFirstSets()
904 struct symbol *sp; in FindStates()
1008 int same_symbol(struct symbol *a, struct symbol *b) in same_symbol()
1029 struct symbol *sp; /* Symbol following the dot in configuration "cfp" */ in buildshifts()
1030 struct symbol *bsp; /* Symbol following the dot in configuration "bcfp" */ in buildshifts()
1155 struct symbol *sp; in FindActions()
1243 struct symbol *spx, *spy; in resolve_conflict()
1404 struct symbol *sp, *xsp; in Configlist_closure()
1707 qsort(lem.symbols,lem.nsymbol,sizeof(struct symbol*), Symbolcmpp); in main()
2238 struct symbol *fallback; /* The fallback token */
2239 struct symbol *tkclass; /* Token class symbol */
2240 struct symbol *lhs; /* Left-hand side of current rule */
2243 struct symbol *rhs[MAXRHS]; /* RHS symbols */
2384 sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs, 1); in parseonetoken()
2393 rp->rhs = (struct symbol**)&rp[1]; in parseonetoken()
2432 struct symbol *msp = psp->rhs[psp->nrhs-1]; in parseonetoken()
2434 struct symbol *origsp = msp; in parseonetoken()
2435 msp = (struct symbol *) calloc(1,sizeof(*msp)); in parseonetoken()
2439 msp->subsym = (struct symbol **) calloc(1,sizeof(struct symbol*)); in parseonetoken()
2445 msp->subsym = (struct symbol **) realloc(msp->subsym, in parseonetoken()
2446 sizeof(struct symbol*)*msp->nsubsym); in parseonetoken()
2576 struct symbol *sp = Symbol_new(x); in parseonetoken()
2590 struct symbol *sp = Symbol_find(x); in parseonetoken()
2610 struct symbol *sp; in parseonetoken()
2695 struct symbol *sp = Symbol_new(x); in parseonetoken()
2736 struct symbol *sp = Symbol_new(x); in parseonetoken()
2767 struct symbol *msp = psp->tkclass; in parseonetoken()
2769 msp->subsym = (struct symbol **) realloc(msp->subsym, in parseonetoken()
2770 sizeof(struct symbol*)*msp->nsubsym); in parseonetoken()
3239 struct symbol *sp = rp->rhs[i]; in rule_print()
3257 struct symbol *sp; in Reprint()
3290 struct symbol *sp; in RulePrint()
3464 struct symbol *sp; in ReportOutput()
3487 struct symbol *sp = lemp->symbols[i]; in ReportOutput()
3731 struct symbol *sp, in emit_destructor_code()
3775 int has_destructor(struct symbol *sp, struct lemon *lemp) in has_destructor()
3952 struct symbol *sp = rp->rhs[i]; in translate_code()
4121 struct symbol *sp = lemp->symbols[i]; in print_stack_union()
4139 struct symbol *sp = lemp->symbols[i]; in print_stack_union()
4273 struct symbol *sp = rp->rhs[j]; in writeRuleText()
4376 struct symbol *sp = rp->rhs[j]; in ReportTable()
4753 struct symbol *p = lemp->symbols[i]; in ReportTable()
4791 struct symbol *sp = lemp->symbols[i]; in ReportTable()
4806 struct symbol *dflt_sp = 0; in ReportTable()
4809 struct symbol *sp = lemp->symbols[i]; in ReportTable()
4825 struct symbol *sp = lemp->symbols[i]; in ReportTable()
4832 struct symbol *sp2 = lemp->symbols[j]; in ReportTable()
5378 struct symbol *Symbol_new(const char *x) in Symbol_new()
5380 struct symbol *sp; in Symbol_new()
5384 sp = (struct symbol *)calloc(1, sizeof(struct symbol) ); in Symbol_new()
5420 const struct symbol *a = *(const struct symbol **) _a; in Symbolcmpp()
5421 const struct symbol *b = *(const struct symbol **) _b; in Symbolcmpp()
5443 struct symbol *data; /* The data */
5472 int Symbol_insert(struct symbol *data, const char *key) in Symbol_insert()
5531 struct symbol *Symbol_find(const char *key) in Symbol_find()
5547 struct symbol *Symbol_Nth(int n) in Symbol_Nth()
5549 struct symbol *data; in Symbol_Nth()
5567 struct symbol **Symbol_arrayof() in Symbol_arrayof()
5569 struct symbol **array; in Symbol_arrayof()
5573 array = (struct symbol **)calloc(arrSize, sizeof(struct symbol *)); in Symbol_arrayof()