typst-0.9: test/typ/compute/calc-00.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 2 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "int")) [ NormalArg (Literal (Boolean False)) ])
, NormalArg (Literal (Int 0))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 3 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "int")) [ NormalArg (Literal (Boolean True)) ])
, NormalArg (Literal (Int 1))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 4 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "int")) [ NormalArg (Literal (Int 10)) ])
, NormalArg (Literal (Int 10))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "int")) [ NormalArg (Literal (String "150")) ])
, NormalArg (Literal (Int 150))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "int"))
[ NormalArg (Divided (Literal (Int 10)) (Literal (Int 3))) ])
, NormalArg (Literal (Int 3))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 7 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "float")) [ NormalArg (Literal (Int 10)) ])
, NormalArg (Literal (Float 10.0))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "float"))
[ NormalArg
(Times
(Literal (Numeric 50.0 Percent)) (Literal (Numeric 30.0 Percent)))
])
, NormalArg (Literal (Float 0.15))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "float"))
[ NormalArg (Literal (String "31.4e-1")) ])
, NormalArg (Literal (Float 3.14))
])
, SoftBreak
, Code
"typ/compute/calc-00.typ"
( line 10 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(Ident (Identifier "type"))
[ NormalArg
(FuncCall
(Ident (Identifier "float")) [ NormalArg (Literal (Int 10)) ])
])
, NormalArg (Literal (String "float"))
])
, 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: [✅]),
parbreak() })