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 101 102 103 104 105 106 107 108 109 110 111 112 113 114
|
--- parse tree ---
[ Comment
, SoftBreak
, Equation
True
[ Code
"typ/math/root-05.typ"
( line 2 , column 3 )
(FuncCall
(Ident (Identifier "root"))
[ NormalArg
(Block (Content [ MAttach Nothing (Just (Text "3")) (Text "2") ]))
])
, Text "="
, Code
"typ/math/root-05.typ"
( line 2 , column 10 )
(FuncCall
(Ident (Identifier "sqrt"))
[ BlockArg [ MAttach Nothing (Just (Text "3")) (Text "2") ] ])
]
, SoftBreak
, Equation
True
[ Code
"typ/math/root-05.typ"
( line 3 , column 3 )
(Ident (Identifier "root"))
, MGroup (Just "(") (Just ")") [ Text "x" , Text "+" , Text "y" ]
, Code
"typ/math/root-05.typ"
( line 3 , column 10 )
(Ident (Identifier "quad"))
, Text "\8731"
, Text "x"
, Code
"typ/math/root-05.typ"
( line 3 , column 18 )
(Ident (Identifier "quad"))
, Text "\8732"
, Text "x"
]
, SoftBreak
, Equation
True
[ MGroup
(Just "(")
(Just ")")
[ Code
"typ/math/root-05.typ"
( line 4 , column 4 )
(FuncCall
(Ident (Identifier "root"))
[ NormalArg (Block (Content [ Text "2" ])) ])
, Text "+"
, Text "3"
]
, Text "="
, MGroup
(Just "(")
(Just ")")
[ Code
"typ/math/root-05.typ"
( line 4 , column 13 )
(FuncCall (Ident (Identifier "sqrt")) [ BlockArg [ Text "2" ] ])
, Text "+"
, Text "3"
]
]
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
math.equation(block: true,
body: { math.root(index: math.attach(b: none,
base: text(body: [2]),
t: text(body: [3]))),
text(body: [=]),
math.sqrt(radicand: math.attach(b: none,
base: text(body: [2]),
t: text(body: [3]))) },
numbering: none),
text(body: [
]),
math.equation(block: true,
body: { math.lr(body: ({ [(],
text(body: [x]),
text(body: [+]),
text(body: [y]),
[)] })),
text(body: [ ]),
text(body: [∛]),
text(body: [x]),
text(body: [ ]),
text(body: [∜]),
text(body: [x]) },
numbering: none),
text(body: [
]),
math.equation(block: true,
body: { math.lr(body: ({ [(],
math.root(index: text(body: [2])),
text(body: [+]),
text(body: [3]),
[)] })),
text(body: [=]),
math.lr(body: ({ [(],
math.sqrt(radicand: text(body: [2])),
text(body: [+]),
text(body: [3]),
[)] })) },
numbering: none),
parbreak() })
|