1
1
mirror of https://github.com/github/semantic.git synced 2024-12-23 06:41:45 +03:00
semantic/test/fixtures/javascript/corpus/if-else.diffA-B.txt
Patrick Thomson 6f63463269 Remove explicit Paren node from syntax trees.
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.
2018-04-23 11:00:10 -04:00

26 lines
464 B
Plaintext

(Program
(If
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }
(If
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(Identifier) }
(If
{ (Identifier)
->(Identifier) }
{ (Identifier)
->(
{+(Identifier)+}) }
{ (Identifier)
->(Identifier) })))))