typst-0.9: test/typ/compiler/break-continue-02.out
--- parse tree ---
[ Comment
, ParBreak
, Code
"typ/compiler/break-continue-02.typ"
( line 3 , column 2 )
(Let (BasicBind (Just (Identifier "i"))) (Literal (Int 0)))
, SoftBreak
, Code
"typ/compiler/break-continue-02.typ"
( line 4 , column 2 )
(Let (BasicBind (Just (Identifier "x"))) (Literal (Int 0)))
, ParBreak
, Code
"typ/compiler/break-continue-02.typ"
( line 6 , column 2 )
(While
(LessThan (Ident (Identifier "x")) (Literal (Int 8)))
(Block
(CodeBlock
[ Assign
(Ident (Identifier "i"))
(Plus (Ident (Identifier "i")) (Literal (Int 1)))
, If
[ ( Equals
(FuncCall
(FieldAccess
(Ident (Identifier "rem")) (Ident (Identifier "calc")))
[ NormalArg (Ident (Identifier "i"))
, NormalArg (Literal (Int 3))
])
(Literal (Int 0))
, Block (CodeBlock [ Continue ])
)
]
, Assign
(Ident (Identifier "x"))
(Plus (Ident (Identifier "x")) (Ident (Identifier "i")))
])))
, ParBreak
, Comment
, SoftBreak
, Code
"typ/compiler/break-continue-02.typ"
( line 15 , column 2 )
(FuncCall
(Ident (Identifier "test"))
[ NormalArg (Ident (Identifier "x"))
, NormalArg (Literal (Int 12))
])
, ParBreak
]
--- evaluated ---
document(body: { parbreak(),
text(body: [
]),
parbreak(),
parbreak(),
text(body: [
]),
text(body: [✅]),
parbreak() })