A to_expression_string() function should be implemented for both expr::token_list and expr::node_ptr that (re)creates the text representation of the expression given by the user.
After tokenization, we should only lose information about the amount of whitespaces between tokens.
After parsing, we can lose the information of the locations of parentheses if they were not required for the same syntax tree.
A
to_expression_string()
function should be implemented for bothexpr::token_list
andexpr::node_ptr
that (re)creates the text representation of the expression given by the user.