In a grammar that defines optional rules (see SQL-ANSI-89.grm) the number of rules can be greatly reduced by defining rules that may be empty.
::=
|
However the rule can sometimes contain no token on the stack when it is reduced.
The problem in the code is in the method Parser::reduce
the rule length is obviously 0...
2008-05-20 09:15:45 UTC in pygold