typst-0.9: test/typ/compiler/set-05.out
--- parse tree ---
[ Comment
, SoftBreak
, Code
"typ/compiler/set-05.typ"
( line 2 , column 2 )
(Show
(Just (Ident (Identifier "ref")))
(FuncExpr
[ NormalParam (Identifier "it") ]
(Block
(CodeBlock
[ If
[ ( Equals
(FieldAccess
(Ident (Identifier "target")) (Ident (Identifier "it")))
(Label "unknown")
, Set
(Ident (Identifier "text"))
[ NormalArg (Ident (Identifier "red")) ]
)
]
, Plus
(Literal (String "@"))
(FuncCall
(Ident (Identifier "str"))
[ NormalArg
(FieldAccess
(Ident (Identifier "target")) (Ident (Identifier "it")))
])
]))))
, ParBreak
, Ref "hello" (Literal Auto)
, Space
, Text "from"
, Space
, Text "the"
, Space
, Ref "unknown" (Literal Auto)
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
text(body: [@<hello>]),
text(body: [ from the ]),
text(body: [@<unknown>]),
parbreak() })