From 6a2994f70166d6c5f72c4c6ed25c808f309ec870 Mon Sep 17 00:00:00 2001 From: Rick Winfrey Date: Thu, 24 Aug 2017 16:22:45 -0700 Subject: [PATCH] Update everything for new assignments --- src/Language/Python/Syntax.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Language/Python/Syntax.hs b/src/Language/Python/Syntax.hs index 6a3ccfc4e..da734c858 100644 --- a/src/Language/Python/Syntax.hs +++ b/src/Language/Python/Syntax.hs @@ -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