Title: [1141] trunk/qdox/src/grammar/parser.y: rename typedeclspecifier to TypeDeclSpecifier
Revision
1141
Author
rfscholte
Date
2011-03-24 17:18:14 -0500 (Thu, 24 Mar 2011)

Log Message

rename typedeclspecifier to TypeDeclSpecifier

Modified Paths


Diff

Modified: trunk/qdox/src/grammar/parser.y (1140 => 1141)

--- trunk/qdox/src/grammar/parser.y	2011-03-24 21:51:47 UTC (rev 1140)
+++ trunk/qdox/src/grammar/parser.y	2011-03-24 22:18:14 UTC (rev 1141)
@@ -62,7 +62,7 @@
 %type <annoval> UnaryExpression UnaryExpressionNotPlusMinus primary
 %type <annoval> PostfixExpression CastExpression AssignmentExpression
 %type <ival> dims Dims_opt
-%type <sval> AnyName typedeclspecifier memberend
+%type <sval> AnyName TypeDeclSpecifier memberend
 %type <type> Type ReferenceType VariableDeclaratorId ClassOrInterfaceType ActualTypeArgument
 
 %%
@@ -227,7 +227,7 @@
 // ClassType:            TypeDeclSpecifier TypeArguments_opt
 // InterfaceType:        TypeDeclSpecifier TypeArguments_opt
 // Parser can't see the difference  
-ClassOrInterfaceType: typedeclspecifier 
+ClassOrInterfaceType: TypeDeclSpecifier 
                       {
                         TypeDef td = new TypeDef($1,0);
                         $$ = typeStack.push(td);
@@ -236,6 +236,12 @@
                       {
                         $$ = typeStack.pop();
                       };
+
+TypeDeclSpecifier: AnyName
+                 | ClassOrInterfaceType DOT IDENTIFIER 
+                   { 
+                     $$ = $1.name + '.' + $3;
+                   };
                
 // 4.4 Type Variables
 TypeParameter: IDENTIFIER 
@@ -339,13 +345,6 @@
     SQUAREOPEN SQUARECLOSE { $$ = 1; } |
     dims SQUAREOPEN SQUARECLOSE { $$ = $1 + 1; };
 
-
-
-
-typedeclspecifier:
-    AnyName |
-    ClassOrInterfaceType DOT IDENTIFIER { $$ = $1.name + '.' + $3; };
-
 // 8 Classes
 
 // 8.1.1 ClassModifier: Annotation public protected private abstract static final strictfp 


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to