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

🔥 argument

This commit is contained in:
Rick Winfrey 2017-08-24 16:22:59 -07:00
parent 6a2994f701
commit 3eded7f4eb

View File

@ -116,8 +116,6 @@ expression = handleError (term everything)
abcd = a <|> b <|> c <|> d
efil = e <|> f <|> i <|> l
pstv = p <|> s <|> t <|> v
a = argument
<|> argumentList
a = argumentList
<|> assertStatement
<|> assignment'
@ -195,10 +193,6 @@ expressionList = mk <$> symbol ExpressionList <*> children (some expression)
where mk _ [child] = child
mk location children = makeTerm location children
argument :: Assignment
argument = makeTerm <$> symbol ListSplatArgument <*> (Syntax.Identifier <$> source)
<|> makeTerm <$> symbol DictionarySplatArgument <*> (Syntax.Identifier <$> source)
<|> makeTerm <$> symbol KeywordArgument <*> children (Statement.Assignment <$> expression <*> expression)
listSplat :: Assignment
listSplat = makeTerm <$> symbol ListSplat <*> (Syntax.Identifier <$> source)