/** Fonction maximum, max( AstList ) */ public class ExpFmax extends Exp { public AstList args; public ExpFmax(AstList args) { super(args); this.args = args; } public Integer eval(){ Integer res = Integer.MIN_VALUE; Integer v; for (AstNode e : args){ v=((Exp)e).eval(); if (v>res) res = v; } return res; } public void accept(AstVisitor v) { v.visit(this); } }