packages feed

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

--- parse tree ---
[ Code
    "typ/compiler/ops-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/ops-01.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/compiler/ops-01.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, SoftBreak
, Comment
, Code
    "typ/compiler/ops-01.typ"
    ( line 5 , column 2 )
    (For
       (BasicBind (Just (Identifier "v")))
       (Array
          [ Reg (Literal (Int 1))
          , Reg (Literal (Float 3.14))
          , Reg (Literal (Numeric 12.0 Pt))
          , Reg (Literal (Numeric 45.0 Deg))
          , Reg (Literal (Numeric 90.0 Percent))
          , Reg
              (Plus (Literal (Numeric 13.0 Percent)) (Literal (Numeric 10.0 Pt)))
          , Reg (Literal (Numeric 6.3 Fr))
          ])
       (Block
          (CodeBlock
             [ FuncCall
                 (Ident (Identifier "test"))
                 [ NormalArg (Ident (Identifier "v"))
                 , NormalArg (Ident (Identifier "v"))
                 ]
             , FuncCall
                 (Ident (Identifier "test"))
                 [ NormalArg (Negated (Ident (Identifier "v")))
                 , NormalArg
                     (Times (Negated (Literal (Int 1))) (Ident (Identifier "v")))
                 ]
             , FuncCall
                 (Ident (Identifier "test"))
                 [ NormalArg (Negated (Negated (Ident (Identifier "v"))))
                 , NormalArg (Ident (Identifier "v"))
                 ]
             , FuncCall
                 (Ident (Identifier "test"))
                 [ NormalArg (Negated (Negated (Negated (Ident (Identifier "v")))))
                 , NormalArg (Negated (Ident (Identifier "v")))
                 ]
             ])))
, ParBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 17 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Negated (Plus (Literal (Int 4)) (Literal (Int 2))))
       , NormalArg (Minus (Literal (Int 6)) (Literal (Int 12)))
       ])
, ParBreak
, Comment
, Code
    "typ/compiler/ops-01.typ"
    ( line 20 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Plus (Literal (Int 2)) (Literal (Int 4)))
       , NormalArg (Literal (Int 6))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 21 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Plus (Literal (String "a")) (Literal (String "b")))
       , NormalArg (Literal (String "ab"))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 22 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (Plus
              (Literal (String "a"))
              (If
                 [ ( Literal (Boolean False)
                   , Block (CodeBlock [ Literal (String "b") ])
                   )
                 ]))
       , NormalArg (Literal (String "a"))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 23 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (Plus
              (Literal (String "a"))
              (If
                 [ ( Literal (Boolean True)
                   , Block (CodeBlock [ Literal (String "b") ])
                   )
                 ]))
       , NormalArg (Literal (String "ab"))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 24 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (Plus
              (Times (Literal (Int 13)) (Literal (String "a")))
              (Literal (String "bbbbbb")))
       , NormalArg (Literal (String "aaaaaaaaaaaaabbbbbb"))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 25 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (Plus
              (Array [ Reg (Literal (Int 1)) , Reg (Literal (Int 2)) ])
              (Array [ Reg (Literal (Int 3)) , Reg (Literal (Int 4)) ]))
       , NormalArg
           (Array
              [ Reg (Literal (Int 1))
              , Reg (Literal (Int 2))
              , Reg (Literal (Int 3))
              , Reg (Literal (Int 4))
              ])
       ])
, SoftBreak
, Code
    "typ/compiler/ops-01.typ"
    ( line 26 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (Plus
              (Dict [ Reg ( Ident (Identifier "a") , Literal (Int 1) ) ])
              (Dict
                 [ Reg ( Ident (Identifier "b") , Literal (Int 2) )
                 , Reg ( Ident (Identifier "c") , Literal (Int 3) )
                 ]))
       , NormalArg
           (Dict
              [ Reg ( Ident (Identifier "a") , Literal (Int 1) )
              , Reg ( Ident (Identifier "b") , Literal (Int 2) )
              , Reg ( Ident (Identifier "c") , Literal (Int 3) )
              ])
       ])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak() })