Example #1
0
 function result_pos($pos)
 {
     return $this->result_code(lime_token_reference($pos));
 }
Example #2
0
 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);
 }