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

Add Assignment Syntax

This commit is contained in:
Rick Winfrey 2016-06-13 16:32:08 -05:00
parent 5c45210eed
commit 4806d975eb

View File

@ -21,4 +21,6 @@ data Syntax
| FunctionCall f [f]
-- | A function has a list of expressions.
| Function { id :: (Maybe f), params :: (Maybe f), expressions :: f }
-- | An assignment has an indetifier where f is a (Leaf a) and a value (Leaf a).
| Assignment { assignmentId :: f, value :: f }
deriving (Functor, Show, Eq, Foldable, Traversable)