Package EDU.purdue.jtb.visitor

Examples of EDU.purdue.jtb.visitor.ExpansionUnitTypeCounter


   //
   // f0 -> ( ExpansionUnit() )*
   //
   public void visit(Expansion n) {
      if ( !errorReported && !topLevel && n.f0.size() > 1 ) {
         ExpansionUnitTypeCounter v = new ExpansionUnitTypeCounter();
         n.accept(v);

         if ( v.getNumNormals() > 1 ) {
            Errors.softErr("In " + curProd + "()--only single " +
               "nonterminals may appear below the top level.");
            errorReported = true;
         }
      }
View Full Code Here

TOP

Related Classes of EDU.purdue.jtb.visitor.ExpansionUnitTypeCounter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.