packages feed

typst-0.9: test/typ/compiler/closure-06.out

--- parse tree ---
[ Comment
, SoftBreak
, Code
    "typ/compiler/closure-06.typ"
    ( line 2 , column 2 )
    (Block
       (CodeBlock
          [ Let
              (BasicBind (Just (Identifier "v")))
              (Array
                 [ Reg (Literal (Int 1))
                 , Reg (Literal (Int 2))
                 , Reg (Literal (Int 3))
                 ])
          , LetFunc
              (Identifier "f")
              []
              (Block
                 (CodeBlock
                    [ Let (BasicBind (Just (Identifier "s"))) (Literal (Int 0))
                    , For
                        (BasicBind (Just (Identifier "v")))
                        (Ident (Identifier "v"))
                        (Block
                           (CodeBlock
                              [ Assign
                                  (Ident (Identifier "s"))
                                  (Plus (Ident (Identifier "s")) (Ident (Identifier "v")))
                              ]))
                    , Ident (Identifier "s")
                    ]))
          , FuncCall
              (Ident (Identifier "test"))
              [ NormalArg (FuncCall (Ident (Identifier "f")) [])
              , NormalArg (Literal (Int 6))
              ]
          ]))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 text(body: [✅]), 
                 parbreak() })