Perform cleaning code

This commit is contained in:
Bartłomiej Pluta
2019-07-12 00:42:51 +02:00
parent e71bffcf5d
commit 28f32ea3d0
7 changed files with 14 additions and 136 deletions

View File

@@ -19,14 +19,13 @@ def ExpressionParser(input):
lambda left, op, right: Expression.withValue(BinaryOperator.withValues(left, op, right))
)
expr2 = Parser.leftAssociativeOperatorParser(
expr2 = Parser.leftAssociativeOperatorParser(
expr1,
[TokenType.RELATION, TokenType.OPEN_ANGLE, TokenType.CLOSE_ANGLE],
expr1,
lambda left, op, right: Expression.withValue(BinaryOperator.withValues(left, op, right))
)
expr3 = Parser.leftAssociativeOperatorParser(
expr2,
[TokenType.AND],
@@ -34,7 +33,6 @@ def ExpressionParser(input):
lambda left, op, right: Expression.withValue(BinaryOperator.withValues(left, op, right))
)
expr4 = Parser.leftAssociativeOperatorParser(
expr3,
[TokenType.OR],