mirror of
https://github.com/github/semantic.git
synced 2024-12-30 18:36:27 +03:00
Add Ternary Syntax data constructor
This commit is contained in:
parent
c4b068c370
commit
ce54abd040
@ -19,6 +19,8 @@ data Syntax
|
||||
| Keyed (OrderedMap T.Text f)
|
||||
-- | A function call has an identifier where f is a (Leaf a) and a list of arguments.
|
||||
| FunctionCall f [f]
|
||||
-- | A ternary has a condition, a true case and a false case
|
||||
| Ternary { ternaryCondition :: f, ternaryCases :: [f] }
|
||||
-- | A function has a list of expressions.
|
||||
| Function { id :: (Maybe f), params :: (Maybe f), expressions :: f }
|
||||
-- | An assignment has an identifier where f can be a member access, and the value is another syntax element (function call, leaf, etc.)
|
||||
|
Loading…
Reference in New Issue
Block a user