contrib/objcwrapper: rename a few AST nodes to 'parameter'
authorAlexis Laferrière <alexis.laf@xymus.net>
Thu, 20 Aug 2015 20:23:33 +0000 (16:23 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Fri, 21 Aug 2015 19:05:27 +0000 (15:05 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/objcwrapper/grammar/objc.sablecc

index 9900d2c..b997614 100644 (file)
@@ -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 |