Ejemplo n.º 1
0
 public PackageDescr compilationUnit(Resource resource) throws RecognitionException {
   return compilationUnit(DescrFactory.newPackage(resource));
 }
Ejemplo n.º 2
0
 /**
  * Entry point method of a DRL compilation unit
  *
  * <p>compilationUnit := packageStatement? ( statement SEMICOLON? )*
  *
  * @return a PackageDescr with the content of the whole compilation unit
  * @throws RecognitionException
  */
 public PackageDescr compilationUnit() throws RecognitionException {
   return compilationUnit(DescrFactory.newPackage());
 }