Help with printing recursive trees with multiple structures
Hello, I have a code similar to like so:
enum Const {
...
}
enum Expr {
const (Const),
SomeOp(Box<ExprAST>),
...
}
Can you give an example on how this would implement the TreeItem
to print a tree recursively. I am not exactly sure what the type Child
should be specifically.
Thanks in advance