typst-0.7: test/typ/compute/calc-06.out
--- parse tree ---
[ Code
"typ/compute/calc-06.typ"
( line 1 , column 2 )
(Let
(BasicBind (Just (Identifier "test")))
(FuncExpr
[ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
(Block
(CodeBlock
[ If
[ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
, Block (Content [ Text "\9989" ])
)
, ( Literal (Boolean True)
, Block
(Content
[ Text "\10060"
, Text "("
, Code
"typ/compute/calc-06.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/compute/calc-06.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Code
"typ/compute/calc-06.typ"
( line 3 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Negated (Literal (Int 3))) ])
, NormalArg (Literal (Int 3))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 4 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Literal (Int 3)) ])
, NormalArg (Literal (Int 3))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Negated (Literal (Float 0.0))) ])
, NormalArg (Literal (Float 0.0))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Literal (Float 0.0)) ])
, NormalArg (Negated (Literal (Float 0.0)))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 7 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Negated (Literal (Float 3.14))) ])
, NormalArg (Literal (Float 3.14))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Literal (Numeric 50.0 Percent)) ])
, NormalArg (Literal (Numeric 50.0 Percent))
])
, SoftBreak
, Code
"typ/compute/calc-06.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "abs")) (Ident (Identifier "calc")))
[ NormalArg (Negated (Literal (Numeric 25.0 Percent))) ])
, NormalArg (Literal (Numeric 25.0 Percent))
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
parbreak() })