示例#1
0
 public Grammar translate(Grammar from) {
   nQualifiedRules = 0;
   nQualifiedExpressions = 0;
   for (Rule r : from) {
     r.accept(this, null);
   }
   System.err.println("bounded rules = " + nQualifiedRules);
   System.err.println("bounded expressions = " + nQualifiedExpressions);
   return from;
 }