Example #1
0
        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;
        }
Example #2
0
        static LuaStandardLibrary()
        {
            _G = new LuaExpression.GlobalAccess("_G");

            Math = new LuaExpression.GlobalAccess("math");
            Math_Pi = Math.MakeIndex("pi");
        }
Example #3
0
 public Assignment(LuaExpression left, LuaExpression right)
     : this()
 {
     LeftHandSide.Add(left);
     LeftHandSide.Add(right);
 }
Example #4
0
 public UnOp(LuaUnaryOperatorType type, LuaExpression operand)
 {
     OpType = type;
     Operand = operand;
 }
Example #5
0
 public LuaIfClause(LuaExpression condition)
 {
     Condition = condition;
 }
Example #6
0
 public Method(LuaExpression target, string name)
 {
     Target = target;
     MethodName = name;
 }
Example #7
0
 public Indexing(LuaExpression target, string index)
 {
     Target = target;
     Index = new StringLiteral(index);
 }
Example #8
0
 public Indexing(LuaExpression target, LuaExpression index)
 {
     Target = target;
     Index = index;
 }
Example #9
0
 public Call(LuaExpression callingOn)
 {
     CallingOn = callingOn;
 }
Example #10
0
 public BinOp(LuaBinaryOperatorType type, LuaExpression left, LuaExpression right)
     : base()
 {
     OpType = type;
     Left = left;
     Right = right;
 }