protected MetaType() { Add = new MetaMethod("+"); Subtract = new MetaMethod("-"); Multiply = new MetaMethod("*"); Divide = new MetaMethod("/"); Modulus = new MetaMethod("%"); Power = new MetaMethod("**"); IntegerDivide = new MetaMethod("//"); Not = new MetaMethod("not"); BitwiseNot = new MetaMethod("~"); BitwiseAnd = new MetaMethod("&"); BitwiseOr = new MetaMethod("|"); BitwiseXor = new MetaMethod("^"); LeftShift = new MetaMethod("<<"); RightShift = new MetaMethod(">>"); Equal = new MetaMethod("="); Compare = new MetaMethod("compare"); At = new MetaMethod("at"); Set = new MetaMethod("set"); Remainder = new MetaMethod("rem"); Count = new MetaMethod("len"); Concat = new MetaMethod(".."); Push = new MetaMethod("push"); Pop = new MetaMethod("pop"); Contains = new MetaMethod("contains?"); Invoke = new MetaMethod("invoke"); InvokeMagic = new MetaMethod("@invoke"); ApplyMacro = new MetaMethod("apply"); AsString = new MetaMethod("string"); Type = new MetaMethod("type"); InitializeDictionary(); }
public MetaMethod(MetaMethod other) { Method = other.Method; Name = other.Name; }