mirror of
https://github.com/github/semantic.git
synced 2024-12-21 05:41:54 +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.
20 lines
266 B
Plaintext
20 lines
266 B
Plaintext
(Program
|
|
(Match
|
|
{ (Float)
|
|
->(Float) }
|
|
(
|
|
(Pattern
|
|
(Float)
|
|
(
|
|
(Float)))
|
|
(Pattern
|
|
(Float)
|
|
(
|
|
{ (Float)
|
|
->(Float) }))
|
|
(Pattern
|
|
(Float)
|
|
(
|
|
(Float)))))
|
|
(Empty))
|