From e8294f21dbbb16e473fe73ce307186b2d7cf26b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Thu, 20 Aug 2015 16:23:33 -0400 Subject: [PATCH] contrib/objcwrapper: rename a few AST nodes to 'parameter' MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- contrib/objcwrapper/grammar/objc.sablecc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/objcwrapper/grammar/objc.sablecc b/contrib/objcwrapper/grammar/objc.sablecc index 9900d2c..b997614 100644 --- a/contrib/objcwrapper/grammar/objc.sablecc +++ b/contrib/objcwrapper/grammar/objc.sablecc @@ -85,7 +85,7 @@ Parser {property:} property_declaration; signature_block = - {signature:} optional_method? scope signature_return_type? signature+ attribute_list? ';'; + {signature:} optional_method? scope signature_return_type? parameter+ attribute_list? ';'; signature_return_type = {return:} lpar type pointer? function_pointer? protocols? rpar; @@ -120,20 +120,20 @@ Parser {class:} '+' | {instance:} '-'; - signature = - {named:} [left:]term ':' lpar signature_type rpar attribute? [right:]term | + parameter = + {named:} [left:]term ':' lpar parameter_type rpar attribute? [right:]term | {single:} term | {comma:} comma '...' | {macro:} macro_name; - signature_type = + parameter_type = + {normal:} type | {anonymous:} type anonymous | {table:} type protocols? '[]' | {pointer:} type pointer | - {unsigned:} unsigned pointer | {protocol:} type protocols | - {function_pointer:} function_pointer | - {normal:} type; + {unsigned:} unsigned pointer | + {function_pointer:} function_pointer; anonymous = {method:} lpar '^' term? rpar lpar declarations? rpar | -- 1.7.9.5