示例#1
0
文件: LpObject.cs 项目: baban/lp
        protected static LpObject define_method(LpObject self, LpObject[] args, LpObject block = null)
        {
            var name = args[0].stringValue;

            //self.methods[name] = LpMethod.initialize( block.arguments, block.statements.ToList() );
            return(LpSymbol.initialize(name));
        }
示例#2
0
文件: LpObject.cs 项目: baban/lp
        protected static LpObject alias(LpObject self, LpObject[] args, LpObject block = null)
        {
            string src = args[0].stringValue;
            string dst = args[1].stringValue;

            self.methods[dst] = (LpMethod)self.methods[src];
            return(LpSymbol.initialize(dst));
        }