Esempio n. 1
0
 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;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 public whileStatementAST(conditionAST c, statementAST s)
 {
     condition = c;
     statement = s;
 }
 public ifStatementSinELseAST(conditionAST cnd, statementAST stat)
 {
     this.condition = cnd;
     this.statement1 = stat;
 }
Esempio n. 6
0
 public ifStatementConELseAST(conditionAST cnd, statementAST stat1, statementAST stat2)
 {
     this.condition  = cnd;
     this.statement1 = stat1;
     this.statement2 = stat2;
 }
Esempio n. 7
0
 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;
 }
Esempio n. 9
0
 public whileStatementAST(conditionAST c, statementAST s)
 {
     condition = c;
     statement = s;
 }