packages feed

typst-0.9: test/typ/compiler/block-00.out

--- parse tree ---
[ Comment
, ParBreak
, Comment
, SoftBreak
, Code
    "typ/compiler/block-00.typ"
    ( line 4 , column 2 )
    (Block
       (CodeBlock
          [ Let
              (BasicBind (Just (Identifier "parts")))
              (Array
                 [ Reg (Literal (String "my fri"))
                 , Reg (Literal (String "end."))
                 ])
          , Block (Content [ Text "Hello," , Space ])
          , For
              (BasicBind (Just (Identifier "s")))
              (Ident (Identifier "parts"))
              (Block
                 (Content
                    [ Code
                        "typ/compiler/block-00.typ"
                        ( line 7 , column 20 )
                        (Ident (Identifier "s"))
                    ]))
          ]))
, ParBreak
, Comment
, SoftBreak
, Code
    "typ/compiler/block-00.typ"
    ( line 11 , column 2 )
    (Block
       (CodeBlock
          [ Block (Content [ Text "How" ])
          , If
              [ ( Literal (Boolean True)
                , Block (CodeBlock [ Literal (String " are") ])
                )
              ]
          , Block (Content [ Space ])
          , If
              [ ( Literal (Boolean False) , Block (Content [ Text "Nope" ]) ) ]
          , Plus (Block (Content [ Text "you" ])) (Literal (String "?"))
          ]))
, ParBreak
]
--- evaluated ---
document(body: { parbreak(), 
                 text(body: [
]), 
                 text(body: [Hello, ]), 
                 text(body: [my fri]), 
                 text(body: [end.]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [How]), 
                 text(body: [ are]), 
                 text(body: [ ]), 
                 text(body: [you]), 
                 text(body: [?]), 
                 parbreak() })