Created
February 20, 2020 11:48
-
-
Save obernardovieira/ff7994c2248270cd2d90a5c829ae2a83 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variableDeclaration | |
: typeName storageLocation? identifier ; | |
typeName | |
: elementaryTypeName | |
| userDefinedTypeName | |
| mapping | |
| typeName '[' expression? ']' | |
| functionTypeName | |
| 'address' 'payable' ; | |
elementaryTypeName | |
: 'address' | 'bool' | 'string' | 'var' | Int | Uint | 'byte' | Byte | Fixed | Ufixed ; | |
storageLocation | |
: 'memory' | 'storage' | 'calldata'; | |
identifier | |
: ('from' | 'calldata' | Identifier) ; | |
Identifier | |
: IdentifierStart IdentifierPart* ; | |
fragment | |
IdentifierStart | |
: [a-zA-Z$_] ; | |
fragment | |
IdentifierPart | |
: [a-zA-Z0–9$_] ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment