Re:Syntax highlighting is a waste of an information channel
by feanaro on Tuesday July 21, 2020 @07:51AM
(#23906121)
There is no reason not to store the text as a canonical representation alongside an alternative AST representation. A valid AST can always be rendered as valid source code and valid source code can always be parsed back into an AST.
So if the AST format changes incompatibly, you simply need to let the compiler regenerate it from the source code.
So if the AST format changes incompatibly, you simply need to let the compiler regenerate it from the source code.