packages feed

typst-0.7: test/typ/compute/calc-00.out

--- parse tree ---
[ Code
    "typ/compute/calc-00.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/compute/calc-00.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/compute/calc-00.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, Code
    "typ/compute/calc-00.typ"
    ( line 3 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "int")) [ NormalArg (Literal (Boolean False)) ])
       , NormalArg (Literal (Int 0))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 4 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "int")) [ NormalArg (Literal (Boolean True)) ])
       , NormalArg (Literal (Int 1))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 5 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "int")) [ NormalArg (Literal (Int 10)) ])
       , NormalArg (Literal (Int 10))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 6 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "int")) [ NormalArg (Literal (String "150")) ])
       , NormalArg (Literal (Int 150))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 7 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "int"))
              [ NormalArg (Divided (Literal (Int 10)) (Literal (Int 3))) ])
       , NormalArg (Literal (Int 3))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 8 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "float")) [ NormalArg (Literal (Int 10)) ])
       , NormalArg (Literal (Float 10.0))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 9 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "float"))
              [ NormalArg
                  (Times
                     (Literal (Numeric 50.0 Percent)) (Literal (Numeric 30.0 Percent)))
              ])
       , NormalArg (Literal (Float 0.15))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 10 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "float"))
              [ NormalArg (Literal (String "31.4e-1")) ])
       , NormalArg (Literal (Float 3.14))
       ])
, SoftBreak
, Code
    "typ/compute/calc-00.typ"
    ( line 11 , column 2 )
    (FuncCall
       (Ident (Identifier "test"))
       [ NormalArg
           (FuncCall
              (Ident (Identifier "type"))
              [ NormalArg
                  (FuncCall
                     (Ident (Identifier "float")) [ NormalArg (Literal (Int 10)) ])
              ])
       , NormalArg (Literal (String "float"))
       ])
, 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: [✅]), 
                 parbreak() })