Skip to content

Printing

Adam Dernis edited this page May 24, 2020 · 1 revision

In order to support multiple printing formats, Calc has a printing abstract class. The abstract class contains a function for printing every non-abstract node type. Nodes call an instance of this class to print themselves. Operator nodes will have their children print themselves then use the results. The tree hierarchy guarantees extra parenthesis won't be necessary.

Clone this wiki locally