Printing Abstract Syntax Tree, infinite recursion issue
问题 For the final project in my C programming class, we are implementing a reverse polish notation calculator which can either evaluate an expression for correctness, return the corresponding infix expression, or print out mock assembly code. To do so, we are to implement both a stack and a Abstract Syntax Tree. struct snode /*stack data structure */ { int datum; struct snode* bottom; }; struct tnode /*tree data structure */ { int datum; struct tnode* left; struct tnode* right; }; Currently, I've