@begin E4X ObjectiveC
"@" L C F(tk::At, hi::Operator);
-"#" L C F(tk::Pound, hi::Operator);
@end
"&" L C F(tk::Ampersand, hi::Operator);
@begin E4X ObjectiveC
%token At "@"
-%token Pound "#"
@end
%token Ampersand "&"
/* }}} */
/* Cycript (Objective-C): Instance Literals {{{ */
PrimaryExpression
- : "#" NumericLiteral { $$ = CYNew CYInstanceLiteral($2); }
+ : "^" NumericLiteral { $$ = CYNew CYInstanceLiteral($2); }
;
/* }}} */
@end
}
- (NSString *) cy$toCYON:(bool)objective {
- return [@"#" stringByAppendingString:[[self description] cy$toCYON:true]];
+ return [@"^" stringByAppendingString:[[self description] cy$toCYON:true]];
}
- (bool) cy$hasProperty:(NSString *)name {