Debug print for preferred token disambiguation.
@@ -311,6 +311,8 @@ class Parser(object):
# Finally try to find preferred token.
pref_tokens = [x for x in tokens if x.symbol.prefer]
if len(pref_tokens) == 1:
+ if self.debug:
+ print("\tPreferring token {}.".format(pref_tokens[0]))
return pref_tokens[0]
elif len(pref_tokens) > 1:
tokens = pref_tokens
