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:
parent
5c45210eed
commit
4806d975eb
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user