Open bcumming opened 9 years ago
I think this is fixed already, isn't it?
No, it wasn't fixed. It is implemented as a to_string
method in each specialization of Expression
. This needs to be cleaned up so that things like indentation when printing chunks of AST works properly.
Ok, now I see. It's just for printing the AST itself. I thought it was referring to the CPrinter/CUDAPrinter.
The printer is very useful for debugging the compiler, and will also be useful as the logging facility is expanded.
The current Expression::to_string() method for printing AST nodes has stopped scaling (e.g. indentation of sub-nodes isn't working well).