Add function asting
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
70f616d60c
commit
cb55c00739
4 changed files with 97 additions and 4 deletions
|
|
@ -417,6 +417,7 @@ fn emit_ast_expr(
|
|||
| TemplateAstExpr::ForElse
|
||||
| TemplateAstExpr::Invalid { .. }
|
||||
| TemplateAstExpr::Literal { .. }
|
||||
| TemplateAstExpr::FunctionCall { .. }
|
||||
| TemplateAstExpr::Operation { .. }
|
||||
| TemplateAstExpr::VariableAccess { .. } => eval.push(Instruction::Abort),
|
||||
}
|
||||
|
|
@ -459,6 +460,7 @@ fn emit_expr_load(
|
|||
TemplateAstExpr::StaticContent { .. } | TemplateAstExpr::Interpolation { .. } => {
|
||||
unreachable!("Invalid AST here")
|
||||
}
|
||||
TemplateAstExpr::FunctionCall { .. } => todo!(),
|
||||
TemplateAstExpr::ConditionalChain { .. } => todo!(),
|
||||
TemplateAstExpr::ElseConditional { .. } => todo!(),
|
||||
TemplateAstExpr::EndBlock => todo!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue