示例#1
0
文件: ast.hpp 项目: rubendv/ctxlang
 virtual ValueRef evaluate(Scope& scope) const {
     if(elements.size() == 0) {
         return std::shared_ptr<const Tuple>(this);
     }
     ValueRef first = elements[0]->evaluate(scope);
     return first->call(std::vector<ValueRef>(elements.begin()+1, elements.end()), scope);
 }
示例#2
0
文件: types.cpp 项目: okknor/edit
			ValueRef call(ValueRef self, std::vector<ValueRef> args) {
				return self->call(self, args);
			}