You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if it might make sense to just hold on to any parens in the input, as AST nodes. expr_paren(@expr) is likely a harmless no-op at almost every level of the compiler pipeline and it would relieve the pretty printer from having to work out the (sometimes quite complicated) rules regarding the "proper" amount of parenthesization required to reproduce the input unambiguously.
This is a passing Rust program:
The pretty-printer omits the parens around the call in main, so the result of pretty-printing does not compile.
The text was updated successfully, but these errors were encountered: