Currently, classes generate from the tree generator script does not override toString.
Because of this, when debug-printing the AST or semantic elements, we get Instance of 'Something'.
We should change the TreeGenerator so it generates a useful toString override.
For instance, for BooleanLiteral, instead of Instance of 'BooleanLiteral', it should be
BooleanLiteral(literal: Token(type: TokenType.falseKeyword, lexeme: false, offset: 37)).
Currently, classes generate from the tree generator script does not override
toString
.Because of this, when debug-printing the AST or semantic elements, we get
Instance of 'Something'
.We should change the
TreeGenerator
so it generates a usefultoString
override.For instance, for
BooleanLiteral
, instead ofInstance of 'BooleanLiteral'
, it should beBooleanLiteral(literal: Token(type: TokenType.falseKeyword, lexeme: false, offset: 37))
.