typst-0.7: test/typ/meta/counter-01.out
--- parse tree ---
[ Code
"typ/meta/counter-01.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/meta/counter-01.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/meta/counter-01.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Code
"typ/meta/counter-01.typ"
( line 3 , column 2 )
(Let (BasicBind (Just (Identifier "label"))) (Label "heya"))
, SoftBreak
, Code
"typ/meta/counter-01.typ"
( line 4 , column 2 )
(Let
(BasicBind (Just (Identifier "count")))
(FuncCall
(FieldAccess
(Ident (Identifier "display"))
(FuncCall
(Ident (Identifier "counter"))
[ NormalArg (Ident (Identifier "label")) ]))
[]))
, SoftBreak
, Code
"typ/meta/counter-01.typ"
( line 5 , column 2 )
(LetFunc
(Identifier "elem")
[ NormalParam (Identifier "it") ]
(Block
(Content
[ Code
"typ/meta/counter-01.typ"
( line 5 , column 19 )
(FuncCall
(Ident (Identifier "box")) [ NormalArg (Ident (Identifier "it")) ])
, Space
, Code
"typ/meta/counter-01.typ"
( line 5 , column 28 )
(Ident (Identifier "label"))
])))
, ParBreak
, Code
"typ/meta/counter-01.typ"
( line 7 , column 2 )
(FuncCall
(Ident (Identifier "elem"))
[ BlockArg [ Text "hey," , Space , Text "there!" ] ])
, Space
, Code
"typ/meta/counter-01.typ"
( line 7 , column 21 )
(Ident (Identifier "count"))
, Space
, HardBreak
, Code
"typ/meta/counter-01.typ"
( line 8 , column 2 )
(FuncCall
(Ident (Identifier "elem"))
[ BlockArg [ Text "more" , Space , Text "here!" ] ])
, Space
, Code
"typ/meta/counter-01.typ"
( line 8 , column 20 )
(Ident (Identifier "count"))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [
]),
parbreak(),
box(body: text(body: [hey, there!])),
text(body: [ ]),
<heya>,
text(body: [ ]),
text(body: [0]),
text(body: [ ]),
linebreak(),
box(body: text(body: [more here!])),
text(body: [ ]),
<heya>,
text(body: [ ]),
text(body: [0]),
parbreak() })