diff options
author | Nicolai Søborg <NicolaiSoeborg@users.noreply.github.com> | 2016-07-15 05:48:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-15 05:48:29 +0800 |
commit | 80b01f6ebd59f7116335a921e7d84ad1562e15e9 (patch) | |
tree | 3fb460038a7ec126001c392d6b88735049aad04b /libsolidity/grammar.txt | |
parent | ff9d6e05f2c49af37e36fae65269959eb21cf6b2 (diff) | |
download | dexon-solidity-80b01f6ebd59f7116335a921e7d84ad1562e15e9.tar.gz dexon-solidity-80b01f6ebd59f7116335a921e7d84ad1562e15e9.tar.zst dexon-solidity-80b01f6ebd59f7116335a921e7d84ad1562e15e9.zip |
Grammar: tab => spaces
Diffstat (limited to 'libsolidity/grammar.txt')
-rw-r--r-- | libsolidity/grammar.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index 964bd5e2..91bc5bcb 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -9,7 +9,7 @@ StructDefinition = 'struct' Identifier '{' StateVariableDeclaration = TypeName ( 'public' | 'inheritable' | 'private' )? Identifier ';' ModifierDefinition = 'modifier' Identifier ParameterList? Block FunctionDefinition = 'function' Identifier ParameterList - ( Identifier | 'constant' | 'external' | 'public' | 'inheritable' | 'private' )* + ( Identifier | 'constant' | 'external' | 'public' | 'inheritable' | 'private' )* ( 'returns' ParameterList )? Block EnumValue = Identifier @@ -24,7 +24,7 @@ ArrayTypeName = TypeName '[' (Expression)? ']' Block = '{' Statement* '}' Statement = IfStatement | WhileStatement | Block | - ( Continue | Break | Return | VariableDefinition | ExpressionStatement ) ';' + ( Continue | Break | Return | VariableDefinition | ExpressionStatement ) ';' ExpressionStatement = Expression IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? @@ -38,14 +38,14 @@ Throw = 'throw' Expression? ';' VariableDefinition = VariableDeclaration ( '=' Expression )? ';' Expression = Assignment | UnaryOperation | BinaryOperation | FunctionCall | NewExpression | IndexAccess | - MemberAccess | PrimaryExpression + MemberAccess | PrimaryExpression // The expression syntax is actually much more complicated Assignment = Expression (AssignmentOp Expression) BasicBinaryOperation = '|' | '^' | '&' | '<<' | '>>' | '>>>' | '+' | '-' | '*' | '/' | '%' -AssignmentOp = BasicBinaryOperation '=' +AssignmentOp = BasicBinaryOperation'=' UnaryOperation = '!' | '~' | '++' | '--' | 'delete' BinaryOperation = BasicBinaryOperation | '||' | '&&' | '**' | - '==' | '!=' | '<' | '>' | '<=' | '>=' | 'in' + '==' | '!=' | '<' | '>' | '<=' | '>=' | 'in' FunctionCall = Expression '(' Expression ( ',' Expression )* ')' NewExpression = 'new' Identifier |