typst-0.9: test/typ/compute/data-10.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 2 , column 2 )
(Let
(BasicBind (Just (Identifier "data")))
(FuncCall
(Ident (Identifier "yaml"))
[ NormalArg (Literal (String "/assets/files/yaml-types.yaml")) ]))
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 3 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "len")) (Ident (Identifier "data")))
[])
, NormalArg (Literal (Int 7))
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 4 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "null_key")) (Ident (Identifier "data")))
, NormalArg (Array [ Reg (Literal None) , Reg (Literal None) ])
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "string")) (Ident (Identifier "data")))
, NormalArg (Literal (String "text"))
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "integer")) (Ident (Identifier "data")))
, NormalArg (Literal (Int 5))
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 7 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "float")) (Ident (Identifier "data")))
, NormalArg (Literal (Float 1.12))
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "mapping")) (Ident (Identifier "data")))
, NormalArg
(Dict
[ Reg ( Literal (String "1") , Literal (String "one") )
, Reg ( Literal (String "2") , Literal (String "two") )
])
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "seq")) (Ident (Identifier "data")))
, NormalArg
(Array
[ Reg (Literal (Int 1))
, Reg (Literal (Int 2))
, Reg (Literal (Int 3))
, Reg (Literal (Int 4))
])
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 10 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FieldAccess
(Ident (Identifier "bool")) (Ident (Identifier "data")))
, NormalArg (Literal (Boolean False))
])
, SoftBreak
, Code
"typ/compute/data-10.typ"
( line 11 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg
(FuncCall
(FieldAccess
(Ident (Identifier "contains"))
(FuncCall
(FieldAccess
(Ident (Identifier "keys")) (Ident (Identifier "data")))
[]))
[ NormalArg (Literal (String "true")) ])
, NormalArg (Literal (Boolean False))
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [❌(]),
text(body: [8]),
text(body: [ /= ]),
text(body: [7]),
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: [true]),
text(body: [ /= ]),
text(body: [false]),
text(body: [)]),
parbreak() })