K
Size: a a a
K
h
K
Add -> Add + Multh
K
h
h
K
Reduce-s. For each terminal (for instance, "+") that is in the lookahead set of the rule of that position, we generate:haskell
{ currentState =>
{ "+" =>
Reduce (Factor "*" Term . { mkR })
}
}
K
A
K
f
K
K
[
K
Expr -> Expr Term для вызова функций, и однажды пришлось отлаживать чей-то парсер, который разбирал кортежи за O(exp(N))K
K
KR
VK