How to print a binary tree of functions/terminals like a lisp statement?
- by sieve411
I have a binary tree of functions and terminal values. I'd like to print this tree as a lisp statement would be represented!
For example, a tree with just a root of "+" and terminals of "2" and 4" would read (+ (2 4)).