<?phpnamespace eMacros\Program;use eMacros\Environment\Environment;class ListProgram extends Program { public function execute(Environment $env) { //set arguments $env->arguments = array_slice(func_get_args(), 1); $values = array(); foreach ($this->expressions as $expr) { $values[] = $expr->evaluate($env); } return $values; }}?>