diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 04:19:09 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 04:19:09 +0800 |
commit | 47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f (patch) | |
tree | bd0eabfe49b7c0aa3f9d9e3fa0c7190c48e84b18 /docs/grammar.txt | |
parent | 83b90f3e8a3ee168ba00eff33c4443d00bbb8a57 (diff) | |
download | dexon-solidity-47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f.tar.gz dexon-solidity-47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f.tar.zst dexon-solidity-47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f.zip |
Update grammar to reflect state mutability
Diffstat (limited to 'docs/grammar.txt')
-rw-r--r-- | docs/grammar.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index a9838ccb..90dc12ac 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -25,7 +25,7 @@ ModifierDefinition = 'modifier' Identifier ParameterList? Block ModifierInvocation = Identifier ( '(' ExpressionList? ')' )? FunctionDefinition = 'function' Identifier? ParameterList - ( ModifierInvocation | 'constant' | 'payable' | 'external' | 'public' | 'internal' | 'private' )* + ( ModifierInvocation | StateMutability | 'external' | 'public' | 'internal' | 'private' )* ( 'returns' ParameterList )? ( ';' | Block ) EventDefinition = 'event' Identifier IndexedParameterList 'anonymous'? ';' @@ -50,9 +50,10 @@ UserDefinedTypeName = Identifier ( '.' Identifier )* Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')' ArrayTypeName = TypeName '[' Expression? ']' -FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | 'constant' | 'payable' )* +FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | StateMutability )* ( 'returns' TypeNameList )? StorageLocation = 'memory' | 'storage' +StateMutability = 'constant' | 'payable' Block = '{' Statement* '}' Statement = IfStatement | WhileStatement | ForStatement | Block | InlineAssemblyStatement | |