public function getOpCodes($code, $file)
{
$oldfile = $this->file;
$this->file = $file;
$parsed = Haanga_Compiler_Tokenizer::init($code, $this, $file);
$body = new Haanga_AST();
if (isset($parsed[0]) && $parsed[0]['operation'] == 'base') {
throw new Exception("{% base is not supported on inlines %}");
}
$body = new Haanga_AST();
$this->generate_op_code($parsed, $body);
$this->file = $oldfile;
return $body;
}