Hello. I just wanted to understand why Pineapple CAS uses an expression stack rather than having the precedence represented by the AST? Is this to save memory?
The stack is only used while initially parsing the bytes of the TI equation into an AST. After that point, the precedence is implicitly represented in the AST structure. Does that answer your question?
Hello. I just wanted to understand why Pineapple CAS uses an expression stack rather than having the precedence represented by the AST? Is this to save memory?