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

Moving things around

This commit is contained in:
Timothy Clem 2017-06-19 11:07:22 -06:00
parent 1d2bd7342a
commit e2c2bedde2

View File

@ -144,12 +144,6 @@ scopeResolution = symbol ScopeResolution *> children identifier
method :: Assignment
method = makeTerm <$> symbol Method <*> children (Declaration.Method <$> methodName <*> pure [] <*> statements)
-- lvalue :: Assignment
-- lvalue = identifier
-- expression :: Assignment
-- expression = identifier <|> statement
comment :: Assignment
comment = makeTerm <$> symbol Comment <*> (Comment.Comment <$> source)
@ -185,6 +179,12 @@ until' =
for :: Assignment
for = makeTerm <$> symbol For <*> children (Statement.ForEach <$> identifier <*> statement <*> statements)
-- lvalue :: Assignment
-- lvalue = identifier
-- expression :: Assignment
-- expression = identifier <|> statement
-- assignment' :: Assignment
-- assignment'
-- = makeTerm <$> symbol Assignment <*> children (Statement.Assignment <$> lvalue <*> expression)