Lines Matching defs:lex
112 * return string given fsm lex state
116 pplexstr(register int lex)
122 if (lex < 0) lex &= ~lex;
123 splice = (lex & SPLICE);
124 lex &= 0x7f;
125 for (i = 0; i < (elementsof(pplexmap) - 1) && (lex > pplexmap[i].val || lex == pplexmap[i+1].val); i++);
126 if (lex != pplexmap[i].val)
128 if (pplexmap[i].val < 0) sfsprintf(buf, sizeof(buf), "%s|0x%04x%s", pplexmap[i].nam, lex, splice ? "|SPLICE" : "");
129 else sfsprintf(buf, sizeof(buf), "%s+%d", pplexmap[i-1].nam, lex - pplexmap[i-1].val, splice ? "|SPLICE" : "");