Control structures

This commit is contained in:
Andrey Breslav
2010-12-27 21:41:35 +03:00
parent 4cd1a55b9b
commit 408eb6fcdc
8 changed files with 896 additions and 13 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ try
;
catchBlock
: "catch" valueParameters block
: "catch" "(" attributes SimpleName ":" userType ")" block
;
finallyBlock
@@ -21,7 +21,7 @@ loop
;
for
: "for" "(" valOrVar? (SimpleName | parameter) "in" expression ")" expression
: "for" "(" attributes valOrVar? SimpleName (":" type)? "in" expression ")" expression
;
while