AZHenley / knox

A toy programming language written in Go that compiles to C.
MIT License
96 stars 7 forks source link

Literals should be canonicalized at AST creation #172

Open AZHenley opened 4 years ago

AZHenley commented 4 years ago

Underscores removed and octal, hex, and binary converted to decimal should be done when the AST node for the literal is created. Not by the lexer or by the emitter.