Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow user defined typenames in typename expressions
  • Loading branch information
federicobond committed Sep 10, 2019
1 parent d4387ed commit 88c2be6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Solidity.g4
Expand Up @@ -251,7 +251,7 @@ primaryExpression
| identifier ('[' ']')?
| TypeKeyword
| tupleExpression
| elementaryTypeNameExpression ('[' ']')? ;
| typeNameExpression ('[' ']')? ;

expressionList
: expression (',' expression)* ;
Expand Down Expand Up @@ -346,8 +346,9 @@ tupleExpression
: '(' ( expression? ( ',' expression? )* ) ')'
| '[' ( expression ( ',' expression )* )? ']' ;

elementaryTypeNameExpression
: elementaryTypeName ;
typeNameExpression
: elementaryTypeName
| userDefinedTypeName ;

numberLiteral
: (DecimalNumber | HexNumber) NumberUnit? ;
Expand Down

0 comments on commit 88c2be6

Please sign in to comment.