Abstract infix macro
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
a590839b21
commit
4f770c1f24
7 changed files with 42 additions and 35 deletions
|
|
@ -9,7 +9,7 @@ TemplateAst {
|
|||
root: [
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: Operation {
|
||||
expression: MathOperation {
|
||||
op: Times,
|
||||
lhs: Literal {
|
||||
source: [Literal(Integer(5))]"5" (4..5),
|
||||
|
|
@ -30,9 +30,9 @@ TemplateAst {
|
|||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: Operation {
|
||||
expression: MathOperation {
|
||||
op: Plus,
|
||||
lhs: Operation {
|
||||
lhs: MathOperation {
|
||||
op: Times,
|
||||
lhs: Literal {
|
||||
source: [Literal(Integer(2))]"2" (17..18),
|
||||
|
|
@ -47,7 +47,7 @@ TemplateAst {
|
|||
},
|
||||
},
|
||||
},
|
||||
rhs: Operation {
|
||||
rhs: MathOperation {
|
||||
op: Times,
|
||||
lhs: Literal {
|
||||
source: [Literal(Integer(4))]"4" (25..26),
|
||||
|
|
@ -69,9 +69,9 @@ TemplateAst {
|
|||
},
|
||||
Interpolation {
|
||||
prev_whitespace_content: None,
|
||||
expression: Operation {
|
||||
expression: MathOperation {
|
||||
op: Plus,
|
||||
lhs: Operation {
|
||||
lhs: MathOperation {
|
||||
op: Divide,
|
||||
lhs: Literal {
|
||||
source: [Literal(Integer(3))]"3" (38..39),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue