1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
--- parse tree ---
[ Comment
, SoftBreak
, Comment
, SoftBreak
, Code
"typ/compiler/construct-02.typ"
( line 3 , column 2 )
(Block
(Content
[ Code
"typ/compiler/construct-02.typ"
( line 3 , column 4 )
(Set
(Ident (Identifier "rect"))
[ KeyValArg (Identifier "fill") (Ident (Identifier "yellow")) ])
, Code
"typ/compiler/construct-02.typ"
( line 3 , column 28 )
(FuncCall
(Ident (Identifier "text"))
[ NormalArg (Literal (Numeric 1.0 Em))
, NormalArg
(FuncCall
(Ident (Identifier "rect"))
[ KeyValArg (Identifier "inset") (Literal (Numeric 5.0 Pt))
, NormalArg (FuncCall (Ident (Identifier "rect")) [])
])
])
]))
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: rect(body: rect(fill: rgb(100%,86%,0%,100%)),
fill: rgb(100%,86%,0%,100%),
inset: 5.0pt),
size: 1.0em),
parbreak() })
|