packages feed

typst-0.7: test/typ/compiler/set-01.out

--- parse tree ---
[ Code
    "typ/compiler/set-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/compiler/set-01.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/compiler/set-01.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, Code
    "typ/compiler/set-01.typ"
    ( line 3 , column 2 )
    (Let
       (BasicBind (Just (Identifier "fruit")))
       (Block
          (Content
             [ SoftBreak
             , BulletListItem [ Text "Apple" ]
             , SoftBreak
             , BulletListItem [ Text "Orange" ]
             , SoftBreak
             , Code
                 "typ/compiler/set-01.typ"
                 ( line 6 , column 4 )
                 (FuncCall
                    (Ident (Identifier "list"))
                    [ KeyValArg (Identifier "body-indent") (Literal (Numeric 20.0 Pt))
                    , BlockArg [ Text "Pear" ]
                    ])
             , ParBreak
             ])))
, ParBreak
, BulletListItem [ Text "Fruit" ]
, SoftBreak
, Code
    "typ/compiler/set-01.typ"
    ( line 10 , column 2 )
    (Block
       (Content
          [ Code
              "typ/compiler/set-01.typ"
              ( line 10 , column 4 )
              (Set
                 (Ident (Identifier "list"))
                 [ KeyValArg (Identifier "indent") (Literal (Numeric 10.0 Pt)) ])
          , SoftBreak
          , Code
              "typ/compiler/set-01.typ"
              ( line 11 , column 3 )
              (Ident (Identifier "fruit"))
          ]))
, SoftBreak
, BulletListItem
    [ Text "No"
    , Space
    , Text "more"
    , Space
    , Text "fruit"
    , ParBreak
    ]
]
--- evaluated ---
document(body: { text(body: [
]), 
                 parbreak(), 
                 list(children: (text(body: [Fruit]))), 
                 text(body: [
]), 
                 text(body: [
]), 
                 list(children: (text(body: [Apple]), 
                                 text(body: [Orange]))), 
                 list(body-indent: 20.0pt, 
                      children: (text(body: [Pear]))), 
                 parbreak(), 
                 text(body: [
]), 
                 list(children: ({ text(body: [No more fruit]), 
                                   parbreak() }), 
                      indent: 10.0pt) })