Esempio n. 1
0
 Object VisitUnTipoIdentAST(unTipoIdentAST 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. 2
0
        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);
        }