typst-0.9: test/typ/compute/data-03.out
--- parse tree ---
[ Comment
, SoftBreak
, Comment
, SoftBreak
, Code
"typ/compute/data-03.typ"
( line 3 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "width") (Literal Auto) ])
, SoftBreak
, Code
"typ/compute/data-03.typ"
( line 4 , column 2 )
(Let
(BasicBind (Just (Identifier "data")))
(FuncCall
(Ident (Identifier "csv"))
[ NormalArg (Literal (String "/assets/files/zoo.csv")) ]))
, SoftBreak
, Code
"typ/compute/data-03.typ"
( line 5 , column 2 )
(Let
(BasicBind (Just (Identifier "cells")))
(Plus
(FuncCall
(FieldAccess
(Ident (Identifier "map"))
(FuncCall
(FieldAccess (Ident (Identifier "at")) (Ident (Identifier "data")))
[ NormalArg (Literal (Int 0)) ]))
[ NormalArg (Ident (Identifier "strong")) ])
(FuncCall
(FieldAccess
(Ident (Identifier "flatten"))
(FuncCall
(FieldAccess
(Ident (Identifier "slice")) (Ident (Identifier "data")))
[ NormalArg (Literal (Int 1)) ]))
[])))
, SoftBreak
, Code
"typ/compute/data-03.typ"
( line 6 , column 2 )
(FuncCall
(Ident (Identifier "table"))
[ KeyValArg
(Identifier "columns")
(FuncCall
(FieldAccess
(Ident (Identifier "len"))
(FuncCall
(FieldAccess (Ident (Identifier "at")) (Ident (Identifier "data")))
[ NormalArg (Literal (Int 0)) ]))
[])
, SpreadArg (Ident (Identifier "cells"))
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [
]),
text(body: [
]),
text(body: [
]),
table(children: (strong(body: [Name]),
strong(body: [Species]),
strong(body: [Weight]),
strong(body: [Length]),
[Debby],
[Rhinoceros],
[1900kg],
[390cm],
[Fluffy],
[Tiger],
[115kg],
[310cm],
[Sleepy],
[Dolphin],
[150kg],
[180cm]),
columns: 4),
parbreak() })