@Test
  public void match_2() {
    MapAction mapAction = new MapAction();
    mapAction.put(Var.alloc("a"), new ActionMatchVar());

    MapResult mapResult = new MapResult();
    mapResult.put(Var.alloc("a"), ExprUtils.parse("?x"));

    match("?x", "?a", mapAction, mapResult);
  }
Esempio n. 2
0
 public SortCondition(Node var, int dir) {
   this(ExprUtils.nodeToExpr(var), dir);
 }