X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/3cc3e14d8539cef545aa57f3b1a3499c0d3fdf1b..2f33dd04e61fcd883fc6ddcb8f2add8fd9a45eba:/Parser.ypp.in diff --git a/Parser.ypp.in b/Parser.ypp.in index 547d93e..6e889fa 100644 --- a/Parser.ypp.in +++ b/Parser.ypp.in @@ -2045,7 +2045,7 @@ ParameterTail ; SuffixedType - : SuffixedTypeOpt[typed] "[" NumericLiteral[size] "]" { $$ = $typed; $$->modifier_ = CYNew CYTypeArrayOf($size, $$->modifier_); } + : SuffixedTypeOpt[typed] "[" AssignmentExpression[size] "]" { $$ = $typed; $$->modifier_ = CYNew CYTypeArrayOf($size, $$->modifier_); } | "(" "^" TypeQualifierRightOpt[typed] ")" "(" TypedParameters[parameters] ")" { $$ = $typed; $$->modifier_ = CYNew CYTypeBlockWith($parameters, $$->modifier_); } | TypeSignifier[typed] "(" ParameterTail[modifier] { $$ = $typed; CYSetLast($modifier) = $$->modifier_; $$->modifier_ = $modifier; } | "("[parenthesis] ParameterTail[modifier] { $$ = CYNew CYTypedName(@parenthesis); CYSetLast($modifier) = $$->modifier_; $$->modifier_ = $modifier; }