typst-0.7: test/typ/compiler/label-00.out
--- parse tree ---
[ Code
"typ/compiler/label-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/compiler/label-00.typ"
( line 1 , column 47 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "x")) ])
, Space
, Text "/"
, Text "="
, Space
, Code
"typ/compiler/label-00.typ"
( line 1 , column 59 )
(FuncCall
(Ident (Identifier "repr"))
[ NormalArg (Ident (Identifier "y")) ])
, Text ")"
])
)
]
]))))
, SoftBreak
, Comment
, Code
"typ/compiler/label-00.typ"
( line 3 , column 2 )
(Show
(Just (Ident (Identifier "heading")))
(Set
(Ident (Identifier "text"))
[ NormalArg (Literal (Numeric 10.0 Pt)) ]))
, SoftBreak
, Code
"typ/compiler/label-00.typ"
( line 4 , column 2 )
(Show
(Just
(FuncCall
(FieldAccess
(Ident (Identifier "where")) (Ident (Identifier "heading")))
[ KeyValArg (Identifier "label") (Label "intro") ]))
(Ident (Identifier "underline")))
, ParBreak
, Heading 1 [ Text "Introduction" ]
, Code
"typ/compiler/label-00.typ" ( line 6 , column 16 ) (Label "intro")
, SoftBreak
, Text "The"
, Space
, Text "beginning"
, Text "."
, ParBreak
, Heading 1 [ Text "Conclusion" ]
, Text "The"
, Space
, Text "end"
, Text "."
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
parbreak(),
heading(body: text(body: [Introduction]),
level: 1),
<intro>,
text(body: [
The beginning.]),
parbreak(),
heading(body: text(body: [Conclusion]),
level: 1),
text(body: [The end.]),
parbreak() })