1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 09:15:01 +03:00

Update If Syntax to use a list to represent else conditions

- This lets us use a simple structure to break apart nested else-ifs
This commit is contained in:
Rick Winfrey 2016-10-12 12:32:55 -05:00
parent 55e2b7b1f9
commit ddb39bdbcc

View File

@ -71,7 +71,7 @@ data Syntax a f
-- | A method definition with an identifier, params, and a list of expressions.
| Method f [f] [f]
-- | An if statement with an expression, a clause, and maybe more expressions, clauses.
| If f f (Maybe f)
| If f f [f]
-- | A module with an identifier, and a list of syntaxes.
| Module { moduleId:: f, moduleBody :: [f] }
| Import f [f]