static LuaBitLibrary() { Bit = new LuaExpression.GlobalAccess("bit"); Bit_LShift = Bit.MakeIndex("lshift"); Bit_RShift = Bit.MakeIndex("rshift"); Bit_BXor = Bit.MakeIndex("bxor"); Bit_BAnd = Bit.MakeIndex("band"); Bit_BOr = Bit.MakeIndex("bor"); Bit_LShift.ReturnType = LuaValueType.Integer; }
static LuaStandardLibrary() { _G = new LuaExpression.GlobalAccess("_G"); Math = new LuaExpression.GlobalAccess("math"); Math_Pi = Math.MakeIndex("pi"); }
public Assignment(LuaExpression left, LuaExpression right) : this() { LeftHandSide.Add(left); LeftHandSide.Add(right); }
public UnOp(LuaUnaryOperatorType type, LuaExpression operand) { OpType = type; Operand = operand; }
public LuaIfClause(LuaExpression condition) { Condition = condition; }
public Method(LuaExpression target, string name) { Target = target; MethodName = name; }
public Indexing(LuaExpression target, string index) { Target = target; Index = new StringLiteral(index); }
public Indexing(LuaExpression target, LuaExpression index) { Target = target; Index = index; }
public Call(LuaExpression callingOn) { CallingOn = callingOn; }
public BinOp(LuaBinaryOperatorType type, LuaExpression left, LuaExpression right) : base() { OpType = type; Left = left; Right = right; }