next up previous
Next: Productions Only in the Up: Phrase Structure Previous: Productions from 6: Names

Productions from 7: Packages

Productions from 7: Packages[42]:

CompilationUnit:
  PackageDeclarationOpt
  ImportJavaLang ImportDeclarationsOpt TypeDeclarationsOpt .

ImportJavaLang: .

ImportDeclarationsOpt: (&'StartName();' ImportDeclaration)* .

TypeDeclarationsOpt: TypeDeclaration* [';'] .

PackageDeclarationOpt:
  [&'StartName();' 'package' PackageName &'GotPackageImport();' ';'] .

ImportDeclaration:
  SingleTypeImportDeclaration ';' /
  TypeImportOnDemandDeclaration ';' .

SingleTypeImportDeclaration:
  'import' QualInhName &'GotTypeImport();' .

TypeImportOnDemandDeclaration:
  'import' QualInhName '.' '*' &'GotPackageImport();' .

TypeDeclaration:
  ClassDeclaration /
  InterfaceDeclaration .
This macro is invoked in definition 38.



2008-09-11