Object VisitVarTipoIdentAST(varTipoIdentAST 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 formParsAST parseFormPars() { listTipoIdentAST temp=null; listTipoIdentAST result=null; typeAST type=parseType(); Symbol tempsymbol = currentToken; temp = new unTipoIdentAST(tempsymbol,type); accept(sym.ID, "Identificador"); while (currentToken.sym == sym.COMA) { accept(sym.COMA, ","); tempsymbol = currentToken; type = parseType(); temp = new unTipoIdentAST(tempsymbol,type); result = new varTipoIdentAST(result, temp); } return new formParsAST(result); }