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

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