1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 20:31:55 +03:00

Update everything for new assignments

This commit is contained in:
Rick Winfrey 2017-08-24 16:22:45 -07:00
parent 8609e7dced
commit 6a2994f701

View File

@ -112,12 +112,13 @@ expression = handleError (term everything)
-- We may at some point wish to write something to perform this chunking for us.
-- Medium-term, we should consider the construction of choices from first principles; maybe theres a better API for us to construct these tables.
-- Long-term, can we de/serialize assignments and avoid paying the cost of construction altogether?
everything = abcd <|> efil <|> pstv
everything = abcd <|> efil <|> pstv <|> w
abcd = a <|> b <|> c <|> d
efil = e <|> f <|> i <|> l
pstv = p <|> s <|> t <|> v
a = argument
<|> argumentList
a = argumentList
<|> assertStatement
<|> assignment'
<|> await
@ -176,6 +177,10 @@ expression = handleError (term everything)
<|> whileStatement
<|> withStatement
<|> yield
<|> listSplat
w = dictionarySplat
<|> keywordArgument
<|> parenthesizedExpression
expressions :: Assignment
expressions = makeTerm <$> location <*> many expression