Fix exception
The reported exception will look uglier but will work for any kind of weird tokenization that occurred.
This commit is contained in:
parent
df5ff35aa9
commit
f7ac34b761
@ -165,8 +165,7 @@ class Node (object):
|
|||||||
self.child = node(expression[2 + i])
|
self.child = node(expression[2 + i])
|
||||||
|
|
||||||
return
|
return
|
||||||
raise ParserException("Expected operator in '%s'" % ' '.join(expression))
|
raise ParserException("Expected operator in '%s'" % expression)
|
||||||
pass
|
|
||||||
|
|
||||||
def toCode(self):
|
def toCode(self):
|
||||||
'''This method converts the AST into a python code object'''
|
'''This method converts the AST into a python code object'''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user