function result_pos($pos) { return $this->result_code(lime_token_reference($pos)); }
public function fixup($code) { return preg_replace_callback('~\\$(\\d+|\\$)~', function ($foo) { if ($foo[1] === '$') { // always return '$result'; } return lime_token_reference($foo[1] - 1); }, $code); }