Parser cleanup

The new method works fine to parse also unary operators.

This commit removes the special case.
master
Salvo 'LtWorf' Tomaselli 2015-09-09 17:31:02 +07:00
parent 6c8b60cf34
commit 20ebf45271
1 changed files with 0 additions and 3 deletions

@ -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