packages feed

typst-0.9: test/typ/math/cases-00.out

--- parse tree ---
[ Equation
    True
    [ MGroup
        Nothing
        Nothing
        [ Text "f"
        , MGroup (Just "(") (Just ")") [ Text "x" , Text "," , Text "y" ]
        ]
    , Code
        "typ/math/cases-00.typ"
        ( line 1 , column 11 )
        (FieldAccess
           (Ident (Identifier "eq")) (Ident (Identifier "colon")))
    , Code
        "typ/math/cases-00.typ"
        ( line 1 , column 14 )
        (FuncCall
           (Ident (Identifier "cases"))
           [ BlockArg
               [ Text "1"
               , Code
                   "typ/math/cases-00.typ"
                   ( line 2 , column 5 )
                   (Ident (Identifier "quad"))
               , MAlignPoint
               , Text "if "
               , MFrac
                   (MGroup
                      (Just "(")
                      (Just ")")
                      [ Text "x"
                      , Code
                          "typ/math/cases-00.typ"
                          ( line 2 , column 19 )
                          (Ident (Identifier "dot"))
                      , Text "y"
                      ])
                   (Text "2")
               , Code
                   "typ/math/cases-00.typ"
                   ( line 2 , column 28 )
                   (FieldAccess (Ident (Identifier "eq")) (Ident (Identifier "lt")))
               , Text "0"
               ]
           , BlockArg
               [ Text "2"
               , MAlignPoint
               , Text "if "
               , Text "x"
               , Code
                   "typ/math/cases-00.typ"
                   ( line 3 , column 13 )
                   (Ident (Identifier "divides"))
               , Text "2"
               ]
           , BlockArg
               [ Text "3"
               , MAlignPoint
               , Text "if "
               , Text "x"
               , Code
                   "typ/math/cases-00.typ"
                   ( line 4 , column 13 )
                   (Ident (Identifier "in"))
               , Code
                   "typ/math/cases-00.typ"
                   ( line 4 , column 16 )
                   (Ident (Identifier "NN"))
               ]
           , BlockArg [ Text "4" , MAlignPoint , Text "else" ]
           ])
    ]
, ParBreak
]
--- evaluated ---
document(body: { math.equation(block: true, 
                               body: { text(body: [f]), 
                                       math.lr(body: ({ [(], 
                                                        text(body: [x]), 
                                                        text(body: [,]), 
                                                        text(body: [y]), 
                                                        [)] })), 
                                       text(body: [≔]), 
                                       math.cases(children: ({ text(body: [1]), 
                                                               text(body: [ ]), 
                                                               math.alignpoint(), 
                                                               text(body: [if ]), 
                                                               math.frac(denom: text(body: [2]), 
                                                                         num: { text(body: [x]), 
                                                                                text(body: [⋅]), 
                                                                                text(body: [y]) }), 
                                                               text(body: [≤]), 
                                                               text(body: [0]) }, 
                                                             { text(body: [2]), 
                                                               math.alignpoint(), 
                                                               text(body: [if ]), 
                                                               text(body: [x]), 
                                                               text(body: [∣]), 
                                                               text(body: [2]) }, 
                                                             { text(body: [3]), 
                                                               math.alignpoint(), 
                                                               text(body: [if ]), 
                                                               text(body: [x]), 
                                                               text(body: [∈]), 
                                                               text(body: [ℕ]) }, 
                                                             { text(body: [4]), 
                                                               math.alignpoint(), 
                                                               text(body: [else]) })) }, 
                               numbering: none), 
                 parbreak() })