public static string gfuncall(string fun, params string[] values) { StringBuilder sb = new StringBuilder(fun); for (int i = 0; i < values.Length; i++) { sb.Append(' ').Append(PCODE.Bracket(values[i])); } return(sb.ToString()); }
public static string Divide(string e1, string e2) { return(PCODE.Binary(e1, PCODE.Division, e2)); }
public static string Subtract(string e1, string e2) { return(PCODE.Binary(e1, PCODE.Subtraction, e2)); }
public static string Add(string e1, string e2) { return(PCODE.Binary(e1, PCODE.Addition, e2)); }
public static string Mult(string e1, string e2) { return(PCODE.Binary(e1, PCODE.Times, e2)); }
public static string Binary(string e1, string op, string e2) { return(PCODE.Bracket(string.Format("{0} {1} {2}", e1, op, e2))); }