X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c5b15840ab1bb70218506531f9a73fe2d112b007..ca6a1b2b2dce57a7ad9e11bdd3649f00ca855a15:/Parser.ypp.in diff --git a/Parser.ypp.in b/Parser.ypp.in index 6028184..92e6424 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -487,7 +487,6 @@ _finline int yylex(cy::parser::semantic_type *semantic, CYLocation *location, CY %type LabelledItem %type LabelledStatement %type LeftHandSideExpression -%type LetStatement %type LexicalBinding %type LexicalDeclaration %type Literal @@ -1268,7 +1267,7 @@ StatementListItem /* }}} */ /* 13.3 Let and Const Declarations {{{ */ LexicalDeclaration - : LetOrConst BindingList Terminator { $$ = CYNew CYVar($2); } + : LetOrConst BindingList Terminator { $$ = CYNew CYLet($2); } ; LetOrConst @@ -2284,15 +2283,6 @@ IterationStatement : "for" "each" "(" LexPushInOn ForInStatementInitializer "!in" LexPopIn Expression ")" Statement { $$ = CYNew CYForOf($5, $8, $10); } ; /* }}} */ -/* JavaScript FTL: let Statements {{{ */ -LetStatement - : "let" "(" VariableDeclarationList ")" Statement { $$ = CYNew CYLetStatement($3, $5); } - ; - -Statement__ - : LetStatement - ; -/* }}} */ /* JavaScript FTW: Array Comprehensions {{{ */ PrimaryExpression