mirror of
https://github.com/github/semantic.git
synced 2024-12-30 10:27:45 +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.
37 lines
630 B
Plaintext
37 lines
630 B
Plaintext
(Program
|
|
(Package
|
|
(Identifier))
|
|
(Function
|
|
(Empty)
|
|
(Identifier)
|
|
([])
|
|
(
|
|
(Call
|
|
(Identifier)
|
|
(SendChannel
|
|
(Identifier))
|
|
(Empty))
|
|
(Call
|
|
(Identifier)
|
|
(
|
|
(SendChannel
|
|
(Identifier))
|
|
(Minus
|
|
(Identifier)
|
|
(Identifier)))
|
|
(Empty))
|
|
(Call
|
|
(Identifier)
|
|
(
|
|
(SendChannel
|
|
(Identifier))
|
|
(Integer)
|
|
(Integer))
|
|
(Empty))
|
|
(Call
|
|
(Identifier)
|
|
(Map
|
|
(Identifier)
|
|
(Identifier))
|
|
(Empty)))))
|