public forStatementConCondFuntAST(exprAST d, conditionAST c, exprAST f, statementAST s) { this.decl = d; this.condition = c; this.funtion = f; this.statement = s; }
public forStatementConConditionAST(exprAST d, conditionAST c, statementAST s) { this.decl = d; this.condition = c; this.statement = s; }
Object VisitConditionAST(conditionAST var, object arg) { int numaux = ((Integer)arg).intValue(); printtab(numaux); System.out.println(c.getClass().getName()); if(c.- !=null) c.-.visit(this,new Integer(numaux+1)); else{printtab(numaux+1); Console.WriteLine(“NULL”);} return null; }
public whileStatementAST(conditionAST c, statementAST s) { condition = c; statement = s; }
public ifStatementSinELseAST(conditionAST cnd, statementAST stat) { this.condition = cnd; this.statement1 = stat; }
public ifStatementConELseAST(conditionAST cnd, statementAST stat1, statementAST stat2) { this.condition = cnd; this.statement1 = stat1; this.statement2 = stat2; }