packages feed

typst-0.9: test/typ/compiler/ops-11.out

--- parse tree ---
[ Comment
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 3 , column 2 )
    (Let (BasicBind (Just (Identifier "a"))) (Literal None))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 4 , column 2 )
    (Let (BasicBind (Just (Identifier "b"))) (Literal None))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 5 , column 2 )
    (Let (BasicBind (Just (Identifier "c"))) (Literal None))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 6 , column 2 )
    (Assign
       (Array [ Reg (Ident (Identifier "a")) ])
       (Array [ Reg (Literal (Int 1)) ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 7 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg (Literal (Int 1))
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 9 , column 2 )
    (Assign
       (Array
          [ Reg Underscore
          , Reg (Ident (Identifier "a"))
          , Reg (Ident (Identifier "b"))
          , Reg Underscore
          ])
       (Array
          [ Reg (Literal (Int 1))
          , Reg (Literal (Int 2))
          , Reg (Literal (Int 3))
          , Reg (Literal (Int 4))
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 10 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg (Literal (Int 2))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 11 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 3))
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 13 , column 2 )
    (Assign
       (Array
          [ Reg (Ident (Identifier "a"))
          , Reg (Ident (Identifier "b"))
          , Spr (Ident (Identifier "c"))
          ])
       (Array
          [ Reg (Literal (Int 1))
          , Reg (Literal (Int 2))
          , Reg (Literal (Int 3))
          , Reg (Literal (Int 4))
          , Reg (Literal (Int 5))
          , Reg (Literal (Int 6))
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 14 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg (Literal (Int 1))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 15 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 2))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 16 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "c"))
       , NormalArg
           (Array
              [ Reg (Literal (Int 3))
              , Reg (Literal (Int 4))
              , Reg (Literal (Int 5))
              , Reg (Literal (Int 6))
              ])
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 18 , column 2 )
    (Assign
       (Binding
          (DestructuringBind
             [ WithKey (Identifier "a") (BasicBind (Just (Identifier "a")))
             , Simple (BasicBind (Just (Identifier "b")))
             , WithKey (Identifier "x") (BasicBind (Just (Identifier "c")))
             ]))
       (Dict
          [ Reg ( Ident (Identifier "a") , Literal (Int 1) )
          , Reg ( Ident (Identifier "b") , Literal (Int 2) )
          , Reg ( Ident (Identifier "x") , Literal (Int 3) )
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 19 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg (Literal (Int 1))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 20 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 2))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 21 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "c"))
       , NormalArg (Literal (Int 3))
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 23 , column 2 )
    (Let
       (BasicBind (Just (Identifier "a")))
       (Array [ Reg (Literal (Int 1)) , Reg (Literal (Int 2)) ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 24 , column 2 )
    (Assign
       (Binding
          (DestructuringBind
             [ WithKey
                 (Identifier "a")
                 (ExprBind
                    (FuncCall
                       (FieldAccess (Ident (Identifier "at")) (Ident (Identifier "a")))
                       [ NormalArg (Literal (Int 0)) ]))
             , Simple (BasicBind (Just (Identifier "b")))
             ]))
       (Dict
          [ Reg ( Ident (Identifier "a") , Literal (Int 3) )
          , Reg ( Ident (Identifier "b") , Literal (Int 4) )
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 25 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg
           (Array [ Reg (Literal (Int 3)) , Reg (Literal (Int 2)) ])
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 26 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 4))
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 28 , column 2 )
    (Let
       (BasicBind (Just (Identifier "a")))
       (Array [ Reg (Literal (Int 1)) , Reg (Literal (Int 2)) ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 29 , column 2 )
    (Assign
       (Array
          [ Reg
              (FuncCall
                 (FieldAccess (Ident (Identifier "at")) (Ident (Identifier "a")))
                 [ NormalArg (Literal (Int 0)) ])
          , Reg (Ident (Identifier "b"))
          ])
       (Array [ Reg (Literal (Int 3)) , Reg (Literal (Int 4)) ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 30 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg
           (Array [ Reg (Literal (Int 3)) , Reg (Literal (Int 2)) ])
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 31 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 4))
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 33 , column 2 )
    (Assign
       (Array
          [ Reg (Ident (Identifier "a")) , Spr (Ident (Identifier "b")) ])
       (Array
          [ Reg (Literal (Int 1))
          , Reg (Literal (Int 2))
          , Reg (Literal (Int 3))
          , Reg (Literal (Int 4))
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 34 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg (Literal (Int 1))
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 35 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg
           (Array
              [ Reg (Literal (Int 2))
              , Reg (Literal (Int 3))
              , Reg (Literal (Int 4))
              ])
       ])
, ParBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 37 , column 2 )
    (Let
       (BasicBind (Just (Identifier "a")))
       (Array [ Reg (Literal (Int 1)) , Reg (Literal (Int 2)) ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 38 , column 2 )
    (Assign
       (Array
          [ Reg (Ident (Identifier "b"))
          , Spr
              (FuncCall
                 (FieldAccess (Ident (Identifier "at")) (Ident (Identifier "a")))
                 [ NormalArg (Literal (Int 0)) ])
          ])
       (Array
          [ Reg (Literal (Int 1))
          , Reg (Literal (Int 2))
          , Reg (Literal (Int 3))
          , Reg (Literal (Int 4))
          ]))
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 39 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "a"))
       , NormalArg
           (Array
              [ Reg
                  (Array
                     [ Reg (Literal (Int 2))
                     , Reg (Literal (Int 3))
                     , Reg (Literal (Int 4))
                     ])
              , Reg (Literal (Int 2))
              ])
       ])
, SoftBreak
, Code
    "typ/compiler/ops-11.typ"
    ( line 40 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg (Ident (Identifier "b"))
       , NormalArg (Literal (Int 1))
       ])
, ParBreak
]
--- evaluated ---
document(body: { parbreak(), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak(), 
                 text(body: [
]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 text(body: [
]), 
                 text(body: [✅]), 
                 parbreak() })