mirror of
https://github.com/github/semantic.git
synced 2024-11-28 10:15:55 +03:00
6f63463269
As @robrix pointed out, adding explicit parenthesis nodes to our ASTs bloats them with no added gain in expressivity. A pretty-printing solution should use something analogous to `showsPrec` to ensure that parentheses are printed properly.
13 lines
201 B
Plaintext
13 lines
201 B
Plaintext
(Program
|
|
(DoWhile
|
|
{ (Boolean)
|
|
->(Boolean) }
|
|
(
|
|
(Call
|
|
(MemberAccess
|
|
(Identifier)
|
|
(Identifier))
|
|
{ (Identifier)
|
|
->(Identifier) }
|
|
(Empty)))))
|