]> git.saurik.com Git - cycript.git/commitdiff
YYABORT does not actually lead to a parse failure.
authorJay Freeman (saurik) <saurik@saurik.com>
Wed, 18 Nov 2015 23:07:49 +0000 (15:07 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Wed, 18 Nov 2015 23:07:49 +0000 (15:07 -0800)
Cycript.yy.in

index 0c5d04461a5f075e10b6f48454d52fefd8a27247..0f45ef82b43d81b65575acd2db2581d65abef093 100644 (file)
@@ -1707,7 +1707,7 @@ Statement__
 /* }}} */
 /* Cycript (C): extern "C" {{{ */
 Statement__
-    : "extern" StringLiteral { if (strcmp($2->Value(), "C") != 0) YYABORT; } TypedIdentifier { if ($4->identifier_ == NULL) error($4->location_, "expected identifier"); } Terminator { $$ = CYNew CYExternal($2, $4); }
+    : "extern" StringLiteral { if (strcmp($2->Value(), "C") != 0) error(@2, "unknown extern binding"); } TypedIdentifier { if ($4->identifier_ == NULL) error($4->location_, "expected identifier"); } Terminator { $$ = CYNew CYExternal($2, $4); }
     ;
 /* }}} */