Title: [1497] trunk/qdox/src/grammar/parser.y: Add original jls syntax as comment
Revision
1497
Author
rfscholte
Date
2012-04-19 15:55:43 -0500 (Thu, 19 Apr 2012)

Log Message

Add original jls syntax as comment

Modified Paths


Diff

Modified: trunk/qdox/src/grammar/parser.y (1496 => 1497)


--- trunk/qdox/src/grammar/parser.y	2012-04-19 20:35:17 UTC (rev 1496)
+++ trunk/qdox/src/grammar/parser.y	2012-04-19 20:55:43 UTC (rev 1497)
@@ -167,6 +167,9 @@
 // 4.1 The Kinds of Types and Values
 
 //---------------------------------------------------------
+// Type:
+//     BasicType {[]}
+//     ReferenceType  {[]}
 Type: BasicType Dims_opt
       {
         TypeDef td = $1;
@@ -181,6 +184,15 @@
       }
     ;
 
+// BasicType: 
+//     byte
+//     short
+//     char
+//     int
+//     long
+//     float
+//     double
+//     boolean
 BasicType: BYTE 
            { 
              $$ = new TypeDef("byte"); 
@@ -275,10 +287,11 @@
                    typeVariable.getBounds().add($2); 
                  };
 
-// 4.5.1 Type Arguments and Wildcards
 TypeArguments_opt:
                  | TypeArguments;
 
+// TypeArguments: 
+//     < TypeArgument { , TypeArgument } >
 TypeArguments: LESSTHAN 
                {
                  typeStack.peek().setActualArgumentTypes(new LinkedList<TypeDef>());
@@ -296,6 +309,10 @@
                   }
                 ;
 
+
+// TypeArgument:  
+//    ReferenceType {[]}
+//    ? [ ( extends | super ) ( BasicType [] {[]} | ReferenceType {[]} ) ]
 TypeArgument: ReferenceType Dims_opt
               { 
                 TypeDef td = $1;
@@ -363,12 +380,14 @@
       builder.endClass(); 
     };    
 
-// 8.1.1 Class Modifiers
-// See: Modifiers
+//---------------------------------------------------------
 
-// 8.1.2 Generic Classes and Type Parameters
+// NonWildcardTypeArguments:
+//     < TypeList >
 NonWildcardTypeArguments: LESSTHAN TypeList GREATERTHAN;
 
+// TypeList:  
+//     ReferenceType { , ReferenceType }
 TypeList: ReferenceType
         | TypeList COMMA ReferenceType;
 

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to