Printer¶
Pretty-prints a parse tree as indented S-expressions. Each node is printed
as (label ...) with children indented below it; tokens are printed as
(label text) on a single line.
Constructors¶
create¶
Returns¶
- Printer val^
Public Functions¶
apply¶
Print the parse tree rooted at p. Pass a String ref as s to
append to an existing buffer; otherwise a new string is allocated.
fun box apply(
p: ASTChild,
depth: USize val = 0,
indent: String val = " ",
s: String ref = reference)
: String ref
Parameters¶
Returns¶
- String ref
eq¶
Parameters¶
- that: Printer val
Returns¶
- Bool val
ne¶
Parameters¶
- that: Printer val
Returns¶
- Bool val