Durchlaufen von Syntaxbšumen

class Eval extends DepthFirstAdapter {
  public void outACompoundExpression 
        (ACompoundExpression node) {
    System.out.println (node);
    Integer l = 
       (Integer) getOut (node.getLeft());
    Integer r = 
       (Integer) getOut (node.getRight());
    setOut (node, l + r);
  }
}



Johannes Waldmann 2005-01-28