Last active
October 9, 2017 21:40
-
-
Save lukehoban/75564c03690a98023663023e28ce6f9f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -459,8 +466,12 @@ StatementList: | |
| Statement { [$1]} | |
// See 12.2 | |
VariableStatement: | |
- | VAR VariableDeclarationList SEMICOLON { VariableStatement(List.rev($2)) } | |
- | VAR VariableDeclarationList { VariableStatement(List.rev($2)) } | |
+ | Type VariableDeclarationList SEMICOLON { VariableStatement([], false, $1,List.rev($2)) } | |
+ | Type VariableDeclarationList { VariableStatement([], false, $1, List.rev($2)) } | |
+ | READONLY Type VariableDeclarationList SEMICOLON { VariableStatement([], true, $2,List.rev($3)) } | |
+ | READONLY Type VariableDeclarationList { VariableStatement([], true, $2, List.rev($3)) } | |
// See 12.2 | |
VariableDeclarationList: | |
| VariableDeclaration { [$1]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment