Lines Matching refs:symbol

255 struct symbol {  struct
260 struct symbol *fallback; /* fallback token in case this token doesn't parse */ argument
279 struct symbol **subsym; /* Array of constituent symbols */ argument
285 struct symbol *lhs; /* Left-hand side of the rule */
290 struct symbol **rhs; /* The RHS symbols */
296 struct symbol *precsym; /* Precedence symbol for this rule */
346 struct symbol *sp; /* The look-ahead symbol */
352 struct symbol *spOpt; /* SHIFTREDUCE optimization to this symbol */
400 struct symbol **symbols; /* Sorted array of pointers to symbols */
402 struct symbol *errsym; /* The error symbol */
403 struct symbol *wildcard; /* Token that matches anything */
460 struct symbol *Symbol_new(const char *);
463 int Symbol_insert(struct symbol *, const char *);
464 struct symbol *Symbol_find(const char *);
465 struct symbol *Symbol_Nth(int);
467 struct symbol **Symbol_arrayof(void);
545 struct symbol *sp, in Action_add()
818 struct symbol *sp = rp->rhs[i]; in FindRulePrecedences()
859 struct symbol *sp = rp->rhs[i]; in FindFirstSets()
872 struct symbol *s1, *s2; in FindFirstSets()
905 struct symbol *sp; in FindStates()
1009 int same_symbol(struct symbol *a, struct symbol *b) in same_symbol()
1030 struct symbol *sp; /* Symbol following the dot in configuration "cfp" */ in buildshifts()
1031 struct symbol *bsp; /* Symbol following the dot in configuration "bcfp" */ in buildshifts()
1156 struct symbol *sp; in FindActions()
1244 struct symbol *spx, *spy; in resolve_conflict()
1405 struct symbol *sp, *xsp; in Configlist_closure()
1708 qsort(lem.symbols,lem.nsymbol,sizeof(struct symbol*), Symbolcmpp); in main()
2239 struct symbol *fallback; /* The fallback token */
2240 struct symbol *tkclass; /* Token class symbol */
2241 struct symbol *lhs; /* Left-hand side of current rule */
2244 struct symbol *rhs[MAXRHS]; /* RHS symbols */
2385 sizeof(struct symbol*)*psp->nrhs + sizeof(char*)*psp->nrhs, 1); in parseonetoken()
2394 rp->rhs = (struct symbol**)&rp[1]; in parseonetoken()
2433 struct symbol *msp = psp->rhs[psp->nrhs-1]; in parseonetoken()
2435 struct symbol *origsp = msp; in parseonetoken()
2436 msp = (struct symbol *) calloc(1,sizeof(*msp)); in parseonetoken()
2440 msp->subsym = (struct symbol **) calloc(1,sizeof(struct symbol*)); in parseonetoken()
2446 msp->subsym = (struct symbol **) realloc(msp->subsym, in parseonetoken()
2447 sizeof(struct symbol*)*msp->nsubsym); in parseonetoken()
2577 struct symbol *sp = Symbol_new(x); in parseonetoken()
2591 struct symbol *sp = Symbol_find(x); in parseonetoken()
2611 struct symbol *sp; in parseonetoken()
2696 struct symbol *sp = Symbol_new(x); in parseonetoken()
2737 struct symbol *sp = Symbol_new(x); in parseonetoken()
2768 struct symbol *msp = psp->tkclass; in parseonetoken()
2770 msp->subsym = (struct symbol **) realloc(msp->subsym, in parseonetoken()
2771 sizeof(struct symbol*)*msp->nsubsym); in parseonetoken()
3240 struct symbol *sp = rp->rhs[i]; in rule_print()
3258 struct symbol *sp; in Reprint()
3291 struct symbol *sp; in RulePrint()
3465 struct symbol *sp; in ReportOutput()
3488 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()