diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 04:22:59 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-17 04:22:59 +0800 |
commit | d5f01460f99d0aa6b68e62be00f348538280ad23 (patch) | |
tree | d593087b3ff0cd3c4ef2a2a604938975c6be234a | |
parent | 47b6aa1f5b92dbc9d65de6e507d18b57c62ed35f (diff) | |
download | dexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.tar.gz dexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.tar.zst dexon-solidity-d5f01460f99d0aa6b68e62be00f348538280ad23.zip |
Allow constant modifier on state variables in grammar
-rw-r--r-- | docs/grammar.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/grammar.txt b/docs/grammar.txt index 90dc12ac..76827a77 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -16,7 +16,7 @@ ContractPart = StateVariableDeclaration | UsingForDeclaration InheritanceSpecifier = UserDefinedTypeName ( '(' Expression ( ',' Expression )* ')' )? -StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' )? Identifier ('=' Expression)? ';' +StateVariableDeclaration = TypeName ( 'public' | 'internal' | 'private' | 'constant' )? Identifier ('=' Expression)? ';' UsingForDeclaration = 'using' Identifier 'for' ('*' | TypeName) ';' StructDefinition = 'struct' Identifier '{' ( VariableDeclaration ';' (VariableDeclaration ';')* )? '}' |