Title: [1108] trunk/qdox/src/grammar/parser.y: Start usage PackageDeclaration
Revision
1108
Author
rfscholte
Date
2011-03-07 14:34:47 -0600 (Mon, 07 Mar 2011)

Log Message

Start usage PackageDeclaration

Modified Paths


Diff

Modified: trunk/qdox/src/grammar/parser.y (1107 => 1108)

--- trunk/qdox/src/grammar/parser.y	2011-03-05 16:36:37 UTC (rev 1107)
+++ trunk/qdox/src/grammar/parser.y	2011-03-07 20:34:47 UTC (rev 1108)
@@ -77,18 +77,24 @@
 file: | file { line = lexer.getLine(); } filepart;
 
 // And a filepart is a package/import statement, javadoc comment, or class declaration.
-filepart: annotation | package | ImportDeclaration | javadoc | TypeDeclaration;
+filepart: PackageDeclaration | ImportDeclaration |  TypeDeclaration;
 
 // 7.3 Compilation Units
 
 ////TypeDeclarations: TypeDeclaration
 ////                | TypeDeclarations TypeDeclaration;
 
+// 7.4 Package Declarations
+////PackageDeclaration_opt:
+////                      | PackageDeclaration;
 
-// Package statement
+PackageDeclaration: package
+                  | javadoc
+                  | annotation;
+                      
 package: PACKAGE fullidentifier SEMI { builder.addPackage(new PackageDef($2, line)); };
+                      
 
-
 ////ImportDeclarations: ImportDeclaration
 ////				  | ImportDeclarations ImportDeclaration;
 
@@ -141,7 +147,7 @@
 javadoctoken: 
     JAVADOCLINE {
         appendToBuffer($1);
-    } 
+    };
 
 javadoctags: | javadoctags javadoctag;
 


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to