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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
|
--- parse tree ---
[ Code
"typ/layout/stack-2-00.typ"
( line 1 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "height") (Literal (Numeric 3.5 Cm)) ])
, SoftBreak
, Code
"typ/layout/stack-2-00.typ"
( line 2 , column 2 )
(FuncCall
(Ident (Identifier "stack"))
[ KeyValArg (Identifier "dir") (Ident (Identifier "ltr"))
, KeyValArg (Identifier "spacing") (Literal (Numeric 1.0 Fr))
, SpreadArg
(For
(BasicBind (Just (Identifier "c")))
(Literal (String "ABCDEFGHI"))
(Block
(CodeBlock
[ Array
[ Reg
(Block
(Content
[ Code
"typ/layout/stack-2-00.typ"
( line 5 , column 30 )
(Ident (Identifier "c"))
]))
]
])))
])
, ParBreak
, Text "Hello"
, SoftBreak
, Code
"typ/layout/stack-2-00.typ"
( line 9 , column 2 )
(FuncCall
(Ident (Identifier "v")) [ NormalArg (Literal (Numeric 2.0 Fr)) ])
, SoftBreak
, Text "from"
, Space
, Code
"typ/layout/stack-2-00.typ"
( line 10 , column 7 )
(FuncCall
(Ident (Identifier "h")) [ NormalArg (Literal (Numeric 1.0 Fr)) ])
, Space
, Text "the"
, Space
, Code
"typ/layout/stack-2-00.typ"
( line 10 , column 19 )
(FuncCall
(Ident (Identifier "h")) [ NormalArg (Literal (Numeric 1.0 Fr)) ])
, Space
, Text "wonderful"
, SoftBreak
, Code
"typ/layout/stack-2-00.typ"
( line 11 , column 2 )
(FuncCall
(Ident (Identifier "v")) [ NormalArg (Literal (Numeric 1.0 Fr)) ])
, SoftBreak
, Text "World!"
, Space
, Text "\127757"
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
stack(children: (text(body: [A]),
text(body: [B]),
text(body: [C]),
text(body: [D]),
text(body: [E]),
text(body: [F]),
text(body: [G]),
text(body: [H]),
text(body: [I])),
dir: ltr,
spacing: 1.0fr),
parbreak(),
text(body: [Hello
]),
v(amount: 2.0fr),
text(body: [
from ]),
h(amount: 1.0fr),
text(body: [ the ]),
h(amount: 1.0fr),
text(body: [ wonderful
]),
v(amount: 1.0fr),
text(body: [
World! 🌍]),
parbreak() })
|