typst-0.7: test/typ/meta/counter-00.out
--- parse tree ---
[ Code
"typ/meta/counter-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/meta/counter-00.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/meta/counter-00.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Code
"typ/meta/counter-00.typ"
( line 3 , column 2 )
(Let
(BasicBind (Just (Identifier "mine")))
(FuncCall
(Ident (Identifier "counter"))
[ NormalArg (Literal (String "mine!")) ]))
, ParBreak
, Text "Final"
, Text ":"
, Space
, Code
"typ/meta/counter-00.typ"
( line 5 , column 9 )
(FuncCall
(Ident (Identifier "locate"))
[ NormalArg
(FuncExpr
[ NormalParam (Identifier "loc") ]
(FuncCall
(FieldAccess
(Ident (Identifier "at"))
(FuncCall
(FieldAccess
(Ident (Identifier "final")) (Ident (Identifier "mine")))
[ NormalArg (Ident (Identifier "loc")) ]))
[ NormalArg (Literal (Int 0)) ]))
])
, Space
, HardBreak
, Code
"typ/meta/counter-00.typ"
( line 6 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "step")) (Ident (Identifier "mine")))
[])
, SoftBreak
, Text "First"
, Text ":"
, Space
, Code
"typ/meta/counter-00.typ"
( line 7 , column 9 )
(FuncCall
(FieldAccess
(Ident (Identifier "display")) (Ident (Identifier "mine")))
[])
, Space
, HardBreak
, Code
"typ/meta/counter-00.typ"
( line 8 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "update")) (Ident (Identifier "mine")))
[ NormalArg (Literal (Int 7)) ])
, SoftBreak
, Code
"typ/meta/counter-00.typ"
( line 9 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "display")) (Ident (Identifier "mine")))
[ NormalArg (Literal (String "1 of 1"))
, KeyValArg (Identifier "both") (Literal (Boolean True))
])
, Space
, HardBreak
, Code
"typ/meta/counter-00.typ"
( line 10 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "step")) (Ident (Identifier "mine")))
[])
, SoftBreak
, Code
"typ/meta/counter-00.typ"
( line 11 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "step")) (Ident (Identifier "mine")))
[])
, SoftBreak
, Text "Second"
, Text ":"
, Space
, Code
"typ/meta/counter-00.typ"
( line 12 , column 10 )
(FuncCall
(FieldAccess
(Ident (Identifier "display")) (Ident (Identifier "mine")))
[ NormalArg (Literal (String "I")) ])
, SoftBreak
, Code
"typ/meta/counter-00.typ"
( line 13 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "update")) (Ident (Identifier "mine")))
[ NormalArg
(FuncExpr
[ NormalParam (Identifier "n") ]
(Times (Ident (Identifier "n")) (Literal (Int 2))))
])
, SoftBreak
, Code
"typ/meta/counter-00.typ"
( line 14 , column 2 )
(FuncCall
(FieldAccess
(Ident (Identifier "step")) (Ident (Identifier "mine")))
[])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
text(body: [Final: ]),
locate(func: ),
text(body: [ ]),
linebreak(),
text(body: [
First: ]),
text(body: [1]),
text(body: [ ]),
linebreak(),
text(body: [
]),
text(body: [7]),
text(body: [ ]),
linebreak(),
text(body: [
]),
text(body: [
Second: ]),
text(body: [9]),
text(body: [
]),
text(body: [
]),
parbreak() })