Oded Sharon - 2008-05-20

Logged In: YES
user_id=2092509
Originator: NO

The bug is in the handling of empty rules #1967806 The solution (unchecked as far as I can see is to change the funciton popTokensInto)

TokenStack::popTokensInto <- (TokenStack.py)

def popTokensInto(self, reduction, count):
''' Pops 'count' tokens from the stack and appends them
to specified 'reduction'.
Returns None.
'''
if count == 0:
return
l = self.items[-count:]
del self.items[-count:]
for i in l:
reduction.append(i)