diff options
author | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-16 00:45:18 +0800 |
---|---|---|
committer | Lefteris Karapetsas <lefteris@refu.co> | 2014-12-17 07:03:30 +0800 |
commit | f7029726be3bbf119548a83696402512374d809d (patch) | |
tree | 4ba52a22a933d3f2779c8b0301f097b6ffde7ffa /grammar.txt | |
parent | 5b802b685e794832bf8834183bf6c9604e513bbf (diff) | |
download | dexon-solidity-f7029726be3bbf119548a83696402512374d809d.tar.gz dexon-solidity-f7029726be3bbf119548a83696402512374d809d.tar.zst dexon-solidity-f7029726be3bbf119548a83696402512374d809d.zip |
Adding a ForStatement solidity AST Node.
- Adding ForStatement node
- Implemented Parsing for ForStatement
- A simple parsing test for the ForStatement
- Work in progress
Diffstat (limited to 'grammar.txt')
-rw-r--r-- | grammar.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/grammar.txt b/grammar.txt index a26f717a..99a59001 100644 --- a/grammar.txt +++ b/grammar.txt @@ -20,6 +20,7 @@ Statement = IfStatement | WhileStatement | Block | IfStatement = 'if' '(' Expression ')' Statement ( 'else' Statement )? WhileStatement = 'while' '(' Expression ')' Statement +ForStatement = 'for' '(' Expressionstatement Expression Expressionstatement ')' Statement Continue = 'continue' ';' Break = 'break' ';' Return = 'return' Expression? ';' |