mirror of
https://github.com/github/semantic.git
synced 2025-01-03 04:51:57 +03:00
Assign parenthesizedExpressions
This commit is contained in:
parent
738dbbfc2e
commit
8a2495b81a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user