Fix exception

The reported exception will look uglier but will work for any kind of
weird tokenization that occurred.
This commit is contained in:
Salvo 'LtWorf' Tomaselli 2015-09-10 10:13:00 +02:00
parent df5ff35aa9
commit f7ac34b761

View File

@ -165,8 +165,7 @@ class Node (object):
self.child = node(expression[2 + i])
return
raise ParserException("Expected operator in '%s'" % ' '.join(expression))
pass
raise ParserException("Expected operator in '%s'" % expression)
def toCode(self):
'''This method converts the AST into a python code object'''