X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/5befe15eb839184507218ab3feb9e375edf335c3..2b0ddce2b9c3e24fb95f78afaa88e326c61c3085:/Cycript.y diff --git a/Cycript.y b/Cycript.y index 46e81a4..31fd1bc 100644 --- a/Cycript.y +++ b/Cycript.y @@ -29,7 +29,7 @@ typedef struct { CYNumber *number_; CYParameter *parameter_; CYProperty *property_; - CYSelector *selector_; + CYSelectorPart *selector_; CYSource *source_; CYStatement *statement_; CYString *string_; @@ -1076,17 +1076,17 @@ SelectorExpressionOpt ; SelectorExpression_ - : WordOpt ":" SelectorExpressionOpt { $$ = new(driver.pool_) CYSelector($1, true, $3); } + : WordOpt ":" SelectorExpressionOpt { $$ = new(driver.pool_) CYSelectorPart($1, true, $3); } ; SelectorExpression : SelectorExpression_ { $$ = $1; } - | Word { $$ = new(driver.pool_) CYSelector($1, false, NULL); } + | Word { $$ = new(driver.pool_) CYSelectorPart($1, false, NULL); } ; PrimaryExpression_ : MessageExpression { $$ = $1; } - | "@selector" "(" SelectorExpression ")" { $$ = $3; } + | "@selector" "(" SelectorExpression ")" { $$ = new CYSelector($3); } ; /* }}} */