Package Dependencies.PR1

Examples of Dependencies.PR1.FileReader


        }
    }
   
    void T_PRIMA() {
        if (esMultiplicacion()){
            Match(new VT("TK_PROD"));
            F();
            if (esMultiplicacionDivision()) {
                T_PRIMA();
            }
            return;
        }
        else if (esDivision()) {
            Match(new VT("TK_DIV"));
            F();
            if (esMultiplicacionDivision()) {
                T_PRIMA();
            }
            return;
View Full Code Here


        throw new ArithmeticException ("Esperaba * o /");
    }
   
    void F () {
        if (esParentesisAbierto()) {
            Match(new VT("TK_PAR_ABR"));
            E();
            Match(new VT("TK_PAR_CER"));
            return;
        }
        else if (esID()) {
            Match(new VT("TK_ID"));
            return;
        }
        else if (esNumero()) {
            Match(new VT("TK_CTE_NUM"));
            return;
        }
        else if (esNumeroD()) {
            Match(new VT("TK_NOTCNTF"));
            return;
        }
        else if (esMasMenos()) {
            MAS_MENOS();
            F();
View Full Code Here

        throw new SyntaxException("Línea " + nLinea + ": Esperaba paréntesis abierto, identificador o número.");
    }
   
    void MAS_MENOS () {
        if (esMas()) {
            Match(new VT("TK_MAS"));
            return;
        }
        else if (esMenos()) {
            Match(new VT("TK_MENOS"));
            return;
        }
        throw new ArithmeticException ("Espera + o -");
    }
View Full Code Here

TOP

Related Classes of Dependencies.PR1.FileReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.