Package org.rascalmpl.interpreter.matching

Examples of org.rascalmpl.interpreter.matching.SetPattern


    }

    @Override
    public IMatchingResult buildMatcher(IEvaluatorContext eval) {
      return new SetPattern(eval, this, buildMatchers(this.getElements0(), eval));
    }
View Full Code Here


    java.util.List<IMatchingResult> kids = new java.util.ArrayList<IMatchingResult>(alts.size());
    for (org.rascalmpl.ast.Expression arg : alts) {
      kids.add(arg.buildMatcher(eval));
    }

    IMatchingResult setMatcher = new SetPattern(eval, this,  kids);
    java.util.List<IMatchingResult> wrap = new ArrayList<IMatchingResult>(1);
    wrap.add(setMatcher);

    Result<IValue> ambCons = eval.getCurrentEnvt().getVariable("amb");
    return new NodePattern(eval, this, new LiteralPattern(eval, this,  ambCons.getValue()), null, Factory.Tree_Amb, wrap, Collections.<String,IMatchingResult>emptyMap());
View Full Code Here

TOP

Related Classes of org.rascalmpl.interpreter.matching.SetPattern

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.