From a014f22d8c8c5c15aa08500a02da0d0717d62b64 Mon Sep 17 00:00:00 2001 From: Marcin Chrzanowski Date: Wed, 13 Nov 2019 21:06:46 +0100 Subject: Pass interpreter tests --- src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java') diff --git a/src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java b/src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java index e3a0862..0089504 100644 --- a/src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java +++ b/src/main/java/pl/edu/mimuw/cloudatlas/interpreter/Result.java @@ -115,7 +115,7 @@ abstract class Result { private static final BinaryOperation REG_EXPR = new BinaryOperation() { @Override public Value perform(Value v1, Value v2) { - return v1.regExpr(v2); + return v2.regExpr(v1); } }; @@ -134,6 +134,7 @@ abstract class Result { }; protected abstract Result binaryOperationTyped(BinaryOperation operation, ResultSingle right); + protected abstract Result binaryOperationTyped(BinaryOperation operation, ResultColumn right); public Result binaryOperation(BinaryOperation operation, Result right) { return right.callMe(operation, this); @@ -156,7 +157,7 @@ abstract class Result { public Result transformOperation(TransformOperation operation) { // TODO - throw new UnsupportedOperationException("transforation Not yet implemented"); + throw new UnsupportedOperationException("transformation Not yet implemented"); } public Result isEqual(Result right) { -- cgit v1.2.3