1
1
mirror of https://github.com/github/semantic.git synced 2024-12-21 13:51:44 +03:00

Put the = before the first constructor.

This commit is contained in:
Rob Rix 2016-08-04 12:25:56 -04:00
parent 04a3d52007
commit 7378668b2c

View File

@ -11,9 +11,8 @@ import SourceSpan
data Syntax
a -- ^ The type of leaves in the syntax tree, typically String, but possibly some datatype representing different leaves more precisely.
f -- ^ The type representing another level of the tree, e.g. the children of branches. Often Cofree or Fix or similar.
=
-- | A terminal syntax node, e.g. an identifier, or atomic literal.
Leaf a
= Leaf a
-- | An ordered branch of child nodes, expected to be variadic in the grammar, e.g. a list of statements or uncurried function parameters.
| Indexed [f]
-- | An ordered branch of child nodes, expected to be of fixed length in the grammar, e.g. a binary operator & its operands.