@Override public void interpret(EagleInterpreter interpreter) { String name = logicalConstant.toString(); if (name.equals("FALSE")) { interpreter.pushBool(false); } else if (name.equals("TRUE")) { interpreter.pushBool(true); } else throw new RuntimeException("Can't handle BuiltIn's other than TRUE/FALSE: " + name); }
@Override public void interpret(EagleInterpreter interpreter) { boolean leftValue = interpreter.getBoolValue(left); boolean rightValue = interpreter.getBoolValue(right); interpreter.pushBool(leftValue || rightValue); }