]> git.saurik.com Git - cycript.git/commitdiff
Remove Cycript's auto keyword (even I don't care).
authorJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Dec 2015 14:11:56 +0000 (06:11 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Fri, 18 Dec 2015 14:11:56 +0000 (06:11 -0800)
Parser.ypp.in
Scanner.lpp.in

index b76b4b41e5eeffdbfbcb48e1c4a2e5d5a4fe3b3b..9fe2a73a512ea82cc6d77bff99605f70e5b70576 100644 (file)
@@ -439,7 +439,6 @@ type; })
 %token _SEL_ "SEL"
 @end
 
-%token _auto_ "auto"
 %token _each_ "each"
 %token _of_ "of"
 %token _of__ "!of"
@@ -760,7 +759,6 @@ IdentifierName
 
 Word
     : IdentifierNoOf[pass] { $$ = $pass; }
-    | "auto" { $$ = CYNew CYWord("auto"); }
     | "break" { $$ = CYNew CYWord("break"); }
     | "case" { $$ = CYNew CYWord("case"); }
     | "catch" { $$ = CYNew CYWord("catch"); }
@@ -2189,11 +2187,6 @@ MemberAccess
     | "->" AutoComplete { driver.mode_ = CYDriver::AutoIndirect; YYACCEPT; }
     ;
 /* }}} */
-/* Cycript (C): auto Compatibility {{{ */
-Var_
-    : "auto"
-    ;
-/* }}} */
 /* Cycript (C): Lambda Expressions {{{ */
 TypedParameterList_
     : "," TypedParameterList[parameters] { $$ = $parameters; }
index c2aa6e4dc22a5e7e3857413e4189bc8023ed7499..518b6b48215f4fac003f5b2b2f568bea742c204f 100644 (file)
@@ -520,7 +520,6 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "with"            L /*KKK*/ F(tk::_with_, hi::Control);
 "yield"           L /*IS?*/ F(tk::_yield_, hi::Control);
 
-"auto"            L F(tk::_auto_, hi::Meta);
 "each"            L F(tk::_each_, hi::Control);
 "of"              L F(tk::_of_, hi::Operator);