예제 #1
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));
        }
예제 #2
0
 public varTipoIdentAST(listTipoIdentAST hh1, listTipoIdentAST hh2)
 {
     h1 = hh1;
     h2 = hh2;
 }
예제 #3
0
 public varTipoIdentAST(listTipoIdentAST hh1, listTipoIdentAST hh2)
 {
     h1 = hh1;
     h2 = hh2;
 }
예제 #4
0
 public formParsAST(listTipoIdentAST l)
 {
     tipoIdent = l;
 }