Package org.rascalmpl.interpreter.asserts

Examples of org.rascalmpl.interpreter.asserts.Ambiguous


      }
      return buildSort(parseTree, MODULE_SORT);
    }
   
    if (TreeAdapter.isAmb(tree)) {
      throw new Ambiguous(tree);
    }
   
    throw new ImplementationError("Parse of module returned invalid tree.");
  }
View Full Code Here


      if (sortName(tree).equals(sort)) {
        return (T) buildValue(tree);
      }
    }
    else if (TreeAdapter.isAmb(parseTree)) {
      throw new Ambiguous(parseTree);
    }
   
    throw new ImplementationError("This is not a " + sort +  ": " + parseTree);
  }
View Full Code Here

    if (TreeAdapter.isList(tree)) {
      throw new ImplementationError("buildValue should not be called on a list");
    }
   
    if (TreeAdapter.isAmb(tree)) {
      throw new Ambiguous(tree);
    }
   
    if (!TreeAdapter.isAppl(tree)) {
      throw new UnsupportedOperationException();
   
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.asserts.Ambiguous

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.