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
|
--- parse tree ---
[ Code
"typ/text/raw-code-01.typ"
( line 1 , column 2 )
(Set
(Ident (Identifier "page"))
[ KeyValArg (Identifier "width") (Literal (Numeric 180.0 Pt)) ])
, SoftBreak
, Code
"typ/text/raw-code-01.typ"
( line 2 , column 2 )
(Set
(Ident (Identifier "text"))
[ NormalArg (Literal (Numeric 6.0 Pt)) ])
, ParBreak
, RawBlock
"rust"
"/// A carefully designed state machine.\n#[derive(Debug)]\nenum State<'a> { A(u8), B(&'a str) }\n\nfn advance(state: State<'_>) -> State<'_> {\n unimplemented!(\"state machine\")\n}"
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]),
parbreak(),
raw(block: true,
lang: "rust",
text: "/// A carefully designed state machine.\n#[derive(Debug)]\nenum State<'a> { A(u8), B(&'a str) }\n\nfn advance(state: State<'_>) -> State<'_> {\n unimplemented!(\"state machine\")\n}"),
parbreak() })
|