mirror of
https://github.com/github/semantic.git
synced 2025-01-04 13:34:31 +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.
15 lines
230 B
Plaintext
15 lines
230 B
Plaintext
(Program
|
|
{+(Tuple
|
|
{+(Identifier)+}
|
|
{+(Identifier)+}
|
|
{+(Identifier)+})+}
|
|
(Tuple
|
|
{-(Identifier)-}
|
|
(Identifier)
|
|
{+(Identifier)+})
|
|
{+(Identifier)+}
|
|
{-(Tuple
|
|
{-(Identifier)-}
|
|
{-(Identifier)-}
|
|
{-(Identifier)-})-})
|