1
1
mirror of https://github.com/github/semantic.git synced 2025-01-03 04:51:57 +03:00

Assign parenthesizedExpressions

This commit is contained in:
Rick Winfrey 2017-10-09 11:54:16 -07:00
parent 738dbbfc2e
commit 8a2495b81a

View File

@ -106,6 +106,7 @@ expressionChoices =
, packageClause
, packageIdentifier
, parameterDeclaration
, parenthesizedExpression
, parenthesizedType
, pointerType
, rawStringLiteral
@ -252,6 +253,8 @@ typeDeclaration = handleError $ makeTerm <$> symbol TypeDeclaration <*> children
-- Expressions
parenthesizedExpression :: Assignment
parenthesizedExpression = symbol ParenthesizedExpression *> children expressions
binaryExpression :: Assignment
binaryExpression = makeTerm' <$> symbol BinaryExpression <*> children (infixTerm expression expression
[ (inj .) . Expression.Plus <$ symbol AnonPlus