aboutsummaryrefslogtreecommitdiffstats
path: root/grammar.txt
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-16 00:45:18 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-17 07:03:30 +0800
commitf7029726be3bbf119548a83696402512374d809d (patch)
tree4ba52a22a933d3f2779c8b0301f097b6ffde7ffa /grammar.txt
parent5b802b685e794832bf8834183bf6c9604e513bbf (diff)
downloaddexon-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.txt1
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? ';'