packages feed

typst-0.9: test/typ/meta/counter-01.out

--- parse tree ---
[ Comment
, SoftBreak
, Code
    "typ/meta/counter-01.typ"
    ( line 2 , column 2 )
    (Let (BasicBind (Just (Identifier "label"))) (Label "heya"))
, SoftBreak
, Code
    "typ/meta/counter-01.typ"
    ( line 3 , 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 4 , column 2 )
    (LetFunc
       (Identifier "elem")
       [ NormalParam (Identifier "it") ]
       (Block
          (Content
             [ Code
                 "typ/meta/counter-01.typ"
                 ( line 4 , column 19 )
                 (FuncCall
                    (Ident (Identifier "box")) [ NormalArg (Ident (Identifier "it")) ])
             , Space
             , Code
                 "typ/meta/counter-01.typ"
                 ( line 4 , column 28 )
                 (Ident (Identifier "label"))
             ])))
, ParBreak
, Code
    "typ/meta/counter-01.typ"
    ( line 6 , column 2 )
    (FuncCall
       (Ident (Identifier "elem"))
       [ BlockArg [ Text "hey," , Space , Text "there!" ] ])
, Space
, Code
    "typ/meta/counter-01.typ"
    ( line 6 , column 21 )
    (Ident (Identifier "count"))
, Space
, HardBreak
, Code
    "typ/meta/counter-01.typ"
    ( line 7 , column 2 )
    (FuncCall
       (Ident (Identifier "elem"))
       [ BlockArg [ Text "more" , Space , Text "here!" ] ])
, Space
, Code
    "typ/meta/counter-01.typ"
    ( line 7 , 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() })