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:
parent
8609e7dced
commit
6a2994f701
@ -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 there’s 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
|
||||
|
Loading…
Reference in New Issue
Block a user