Fixed Issue #14.

This commit is contained in:
David Beazley
2018-09-08 15:26:00 -05:00
parent a33ff221e5
commit 6a27431f81
2 changed files with 4 additions and 1 deletions

View File

@@ -139,7 +139,7 @@ class YaccProduction:
if isinstance(tok, YaccSymbol):
continue
index = getattr(tok, 'index', None)
if index:
if index is not None:
return index
raise AttributeError('No index attribute found')