]> git.saurik.com Git - cycript.git/commitdiff
@encode syntax doesn't require Objective-C support.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 11:14:12 +0000 (04:14 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 11 Oct 2014 11:14:12 +0000 (04:14 -0700)
Cycript.l.in
Cycript.yy.in

index cbe4fe5c354229fd5ec569d676cea3fdc5003a7e..c5fa6de5880926216647cc8191750ac8c1012819 100644 (file)
@@ -267,8 +267,11 @@ XMLName {XMLNameStart}{XMLNamePart}*
 "signed"          L C I(identifier, Identifier("signed"), tk::Signed, hi::Type);
 @end
 
-@begin ObjectiveC
+@begin C
 "@encode"         L C F(tk::AtEncode, hi::Meta);
+@end
+
+@begin ObjectiveC
 "@end"            L C F(tk::AtEnd, hi::Meta);
 "@implementation" L C F(yyextra->no_.AtImplementation ? tk::AtImplementation_ : tk::AtImplementation, hi::Meta);
 "@import"         L C F(tk::AtImport, hi::Special);
index 0f16b6e98f31b6ab711dc72d6ce9e08df6d67779..9aea79d36a445a47a16956a6efed199025f40e13 100644 (file)
@@ -242,11 +242,14 @@ int cylex(YYSTYPE *, cy::location *, void *);
 %token <identifier_> Signed "signed"
 @end
 
+@begin C
+%token AtEncode "@encode"
+@end
+
 @begin ObjectiveC
 %token AtImplementation "@implementation"
 %token AtImplementation_ ";@implementation"
 %token AtImport "@import"
-%token AtEncode "@encode"
 %token AtEnd "@end"
 %token AtSelector "@selector"
 %token <identifier_> Yes "YES"