public static string GetLessEqualsOperand(LessEquals expression, VHDLCompilerInterface compiler) { string left = GetOperand(expression.Left, compiler); string right = GetOperand(expression.Right, compiler); FunctionCallTemplate template = new FunctionCallTemplate(left, "LessEquals", right); return(template.TransformText()); }
public AbstractValue Evaluate(LessEquals expr) { AbstractValue left = Evaluate(expr.Left); AbstractValue right = Evaluate(expr.Right); if ((left != null) && (right != null) && (left is TIME_VALUE) && (right is TIME_VALUE)) { return(TIME_VALUE.LESS_EQUALS_THAN(left as TIME_VALUE, right as TIME_VALUE)); } throw new NotImplementedException(); }
public static string GetLessEqualsExpresstionType(LessEquals expression, VHDLCompilerInterface compiler) { return("bool"); }