diff options
| author | Quentin Carbonneaux | 2015-03-06 16:24:25 -0500 |
|---|---|---|
| committer | Quentin Carbonneaux | 2015-03-06 16:24:25 -0500 |
| commit | 838484817ff8adf30173fcd8146c3c64ce309605 (patch) | |
| tree | 3904f3cceaf840b6b04521e1a6079e472deefa29 | |
| parent | 9f66377a1b8c7437db5f84513ffd493c2a1c3c2c (diff) | |
do not lex multiple times $
| -rw-r--r-- | miniyacc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1283,10 +1283,10 @@ char *code0[] = { "\n", " ps = stk;\n", " ps->state = s = yyini;\n", -" tk = 0;\n", +" tk = -1;\n", "loop:\n", " n = yyadsp[s];\n", -" if (tk <= 0 && n > -yyntoks)\n", +" if (tk < 0 && n > -yyntoks)\n", " tk = yytrns[yylex()];\n", " n += tk;\n", " if (n < 0 || n >= ActSz || yychk[n] != tk) {\n", |
