public condFactAST parseCndFac() { //CondFact //CondFact = Expr Relop Expr exprAST expr = parseExpr(); relopAST rel = parseRelop(); exprAST expr2 = parseExpr(); return(new condFactAST(expr, rel, expr2)); }
Object VisitRelopAST(relopAST 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 condFactAST(exprAST exp1, relopAST rlp, exprAST exp2) { this.expr1 = exp1; this.relop = rlp; this.expr2 = exp2; }