protected function compileForeach($expr)
    {
        preg_match('/\( *(.*) +as *([^\)]*)/is', $expr, $matches);
        $iteratee = trim($matches[1]);
        $iteration = trim($matches[2]);

        return "<?php foreach({$iteratee} as {$iteration}): ?>";
    }