diff options
author | chriseth <c@ethdev.com> | 2016-11-09 21:15:01 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2016-11-16 21:37:18 +0800 |
commit | f7a62c1e69e98cc612b7ed98497260b38234a162 (patch) | |
tree | 36db42509fe7e318e6c053e649921956c5822b44 /libsolidity | |
parent | e1df3bd77f78d5564fc173474015e5d84b192824 (diff) | |
download | dexon-solidity-f7a62c1e69e98cc612b7ed98497260b38234a162.tar.gz dexon-solidity-f7a62c1e69e98cc612b7ed98497260b38234a162.tar.zst dexon-solidity-f7a62c1e69e98cc612b7ed98497260b38234a162.zip |
Mention "payable" in the documentation.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/grammar.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index cfa779ec..c8bc3aed 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -22,7 +22,7 @@ StructDefinition = 'struct' Identifier '{' ( VariableDeclaration ';' (VariableDeclaration ';')* )? '}' ModifierDefinition = 'modifier' Identifier ParameterList? Block FunctionDefinition = 'function' Identifier? ParameterList - ( FunctionCall | Identifier | 'constant' | 'external' | 'public' | 'internal' | 'private' )* + ( FunctionCall | Identifier | 'constant' |' payable' | 'external' | 'public' | 'internal' | 'private' )* ( 'returns' ParameterList )? Block EventDefinition = 'event' Identifier IndexedParameterList 'anonymous'? ';' @@ -39,7 +39,7 @@ VariableDeclaration = TypeName Identifier TypeName = ElementaryTypeName | Identifier StorageLocation? | Mapping | ArrayTypeName | FunctionTypeName Mapping = 'mapping' '(' ElementaryTypeName '=>' TypeName ')' ArrayTypeName = TypeName StorageLocation? '[' Expression? ']' -FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | 'constant' )* +FunctionTypeName = 'function' TypeNameList ( 'internal' | 'external' | 'constant' | 'payable' )* ( 'returns' TypeNameList )? StorageLocation = 'memory' | 'storage' |