]> git.saurik.com Git - cycript.git/commitdiff
While let might not be Identifier, it sure is Word.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 7 Jun 2012 19:49:10 +0000 (12:49 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 7 Jun 2012 19:57:20 +0000 (12:57 -0700)
Cycript.yy.in

index 410730af0d411330e40caf52a4c43fd8b7ade770..dc2a512c231f9158a83c5241b4d2c0df0620871d 100644 (file)
@@ -592,6 +592,10 @@ Word
     | "import" { $$ = $1; }
     /* XXX: | "in" { $$ = $1; } */
     /* XXX: | "instanceof" { $$ = $1; } */
     | "import" { $$ = $1; }
     /* XXX: | "in" { $$ = $1; } */
     /* XXX: | "instanceof" { $$ = $1; } */
+
+    // XXX: as it currently is not an Identifier
+    | "let" { $$ = $1; }
+
     | "new" { $$ = $1; }
     | "null" { $$ = $1; }
     | "of" { $$ = $1; }
     | "new" { $$ = $1; }
     | "null" { $$ = $1; }
     | "of" { $$ = $1; }
@@ -650,7 +654,9 @@ Identifier
     | "transient" { $$ = $1; }
     | "volatile" { $$ = $1; }
 
     | "transient" { $$ = $1; }
     | "volatile" { $$ = $1; }
 
-    // XXX: is this allowed?! | "let" { $$ = $1; }
+    // XXX: currently I only have this as Word
+    // | "let" { $$ = $1; }
+
     | "yield" { $$ = $1; }
 
     | "each" { $$ = $1; }
     | "yield" { $$ = $1; }
 
     | "each" { $$ = $1; }