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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
--- parse tree ---
[ Comment
, SoftBreak
, Comment
, SoftBreak
, Comment
, SoftBreak
, Code
"typ/compiler/construct-01.typ"
( line 4 , column 2 )
(Set
(Ident (Identifier "list"))
[ KeyValArg (Identifier "marker") (Block (Content [ Text ">" ])) ])
, SoftBreak
, Code
"typ/compiler/construct-01.typ"
( line 5 , column 2 )
(FuncCall
(Ident (Identifier "list"))
[ KeyValArg (Identifier "marker") (Block (Content [ EnDash ]))
, BlockArg
[ SoftBreak
, Code
"typ/compiler/construct-01.typ"
( line 6 , column 4 )
(FuncCall
(Ident (Identifier "rect"))
[ KeyValArg (Identifier "width") (Literal (Numeric 2.0 Cm))
, KeyValArg (Identifier "fill") (Ident (Identifier "green"))
, KeyValArg (Identifier "inset") (Literal (Numeric 4.0 Pt))
, NormalArg
(FuncCall (Ident (Identifier "list")) [ BlockArg [ Text "A" ] ])
])
, ParBreak
]
])
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
text(body: [
]),
text(body: [
]),
text(body: [
]),
list(children: ({ text(body: [
]),
rect(body: list(children: (text(body: [A])),
marker: text(body: [>])),
fill: rgb(18%,80%,25%,100%),
inset: 4.0pt,
width: 2.0cm),
parbreak() }),
marker: text(body: [–])),
parbreak() })
|