public override string ToString(Context cx) { if (Bool(A) == "true") { return("if (" + cx.SRK(B) + " " + nsymb + " " + cx.SRK(C) + ") then"); } else { return("if (" + cx.SRK(B) + " " + symb + " " + cx.SRK(C) + ") then"); } }
public override string ToString(Context cx) { if (cx.IsLocal(A)) { return(cx.LocalName(A) + " = " + cx.SRK(B) + " / " + cx.SRK(C)); } else { if (!ObjLuaFunction.DEBUG) { return(""); } return("// " + R(A) + " = " + cx.SRK(B) + " / " + cx.SRK(C)); } }
public override string ToString(Context cx) { /*if (!ObjLuaFunction.DEBUG) return ""; * return "// " + R(A) + " = " + cx.SR(B)+"["+cx.SRK(C)+"]";*/ return(AssignA(cx, cx.SR(B) + "[" + cx.SRK(C) + "]")); }
public override string ToString(Context cx) { object o = cx.RK(C); if (o is ObjLuaFunction) { string s = cx.SRK(C).Replace("{{name}}", "function_" + cx.PC); s += "\n" + cx.Indent; s += cx.SR(A) + "[" + cx.SRK(B) + "]" + " = " + "function_" + cx.PC; return(s); } else { return(cx.SR(A) + "[" + cx.SRK(B) + "]" + " = " + cx.SRK(C)); } }
public void Run(Context cx) { cx.SetReg((ushort)(this.A + 1), cx.R(this.B)); cx.SetReg(this.A, cx.LoadTable(B, cx.RK(C))); cx.SetSReg((ushort)(this.A + 1), cx.SR(this.B)); cx.SetSReg(this.A, cx.SR(B) + "[" + cx.SRK(C) + "]"); }
public void Run(Context cx) { cx.SetReg(A, cx.LoadTable(B, cx.RK(C))); cx.SetSReg(A, cx.SR(B) + "[" + cx.SRK(C) + "]"); }
public override string ToString(Context cx) { return(Assign((ushort)(this.A + 1), cx, cx.SR(B)) + "\n" + cx.Indent + AssignA(cx, cx.SR(B) + "[" + cx.SRK(C) + "]")); }
public void Run(Context cx) { cx.SetReg(this.A, Convert.ToDouble(cx.RK(this.B)) / Convert.ToDouble(cx.RK(this.C))); cx.SetSReg(A, "(" + cx.SRK(B) + " / " + cx.SRK(C) + ")"); }