typst-0.7: test/typ/compiler/ops-09.out
--- parse tree ---
[ Code
"typ/compiler/ops-09.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/compiler/ops-09.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/compiler/ops-09.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 4 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan
(Times (Literal (Int 13)) (Literal (Int 3)))
(Times (Literal (Int 14)) (Literal (Int 4))))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (LessThan (Literal (Int 5)) (Literal (Int 10)))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (GreaterThan (Literal (Int 5)) (Literal (Int 5)))
, NormalArg (Literal (Boolean False))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 7 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (LessThanOrEqual (Literal (Int 5)) (Literal (Int 5)))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (LessThanOrEqual (Literal (Int 5)) (Literal (Int 4)))
, NormalArg (Literal (Boolean False))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan (Literal (Numeric 45.0 Deg)) (Literal (Numeric 1.0 Rad)))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 10 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan
(Literal (Numeric 10.0 Percent)) (Literal (Numeric 20.0 Percent)))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 11 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan
(Literal (Numeric 50.0 Percent))
(Plus (Literal (Numeric 40.0 Percent)) (Literal (Numeric 0.0 Pt))))
, NormalArg (Literal (Boolean False))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 12 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan
(Plus (Literal (Numeric 40.0 Percent)) (Literal (Numeric 0.0 Pt)))
(Plus (Literal (Numeric 50.0 Percent)) (Literal (Numeric 0.0 Pt))))
, NormalArg (Literal (Boolean True))
])
, SoftBreak
, Code
"typ/compiler/ops-09.typ"
( line 13 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(LessThan (Literal (Numeric 1.0 Em)) (Literal (Numeric 2.0 Em)))
, NormalArg (Literal (Boolean True))
])
, 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: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
text(body: [
]),
text(body: [✅]),
parbreak() })