Parser cleanup
The new method works fine to parse also unary operators. This commit removes the special case.
This commit is contained in:
parent
6c8b60cf34
commit
20ebf45271
@ -337,9 +337,6 @@ def tokenize(expression):
|
||||
# Inserting parameter of the operator
|
||||
expression = expression[
|
||||
par:].strip() # Removing parameter from the expression
|
||||
elif expression.startswith((DIVISION, INTERSECTION, UNION, PRODUCT, DIFFERENCE, JOIN, JOIN_LEFT, JOIN_RIGHT, JOIN_FULL)):
|
||||
items.append(expression[0])
|
||||
expression = expression[1:].strip() # 1 char from the expression
|
||||
else: # Relation (hopefully)
|
||||
expression+=' ' #To avoid the special case of the ending
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user