Parse and ast math expressions
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
8cc8488de4
commit
8c02dbd672
8 changed files with 196 additions and 51 deletions
|
|
@ -402,6 +402,8 @@ fn emit_ast_expr(
|
|||
| TemplateAstExpr::For { .. }
|
||||
| TemplateAstExpr::ForElse
|
||||
| TemplateAstExpr::Invalid { .. }
|
||||
| TemplateAstExpr::Literal { .. }
|
||||
| TemplateAstExpr::Operation { .. }
|
||||
| TemplateAstExpr::VariableAccess { .. } => eval.push(Instruction::Abort),
|
||||
}
|
||||
}
|
||||
|
|
@ -430,6 +432,8 @@ fn emit_expr_load(
|
|||
TemplateAstExpr::ForChain { .. } => todo!(),
|
||||
TemplateAstExpr::For { .. } => todo!(),
|
||||
TemplateAstExpr::ForElse => todo!(),
|
||||
TemplateAstExpr::Operation { .. } => todo!(),
|
||||
TemplateAstExpr::Literal { .. } => todo!(),
|
||||
|
||||
TemplateAstExpr::IfConditional { .. } => todo!(),
|
||||
TemplateAstExpr::ConditionalContent { .. } => todo!(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue