예제 #1
0
 public Expresiones Andexp_prime(Expresiones E1)
 {
     if (currentToken.Tipo == Lexico.TipoToken.TK_AND)
     {
         currentToken = lex.NextToken();
         Expresiones E= Addexp();
         And eAnd= new And(E1, Andexp_prime(E));
         return eAnd;
     }
     return E1;
 }
예제 #2
0
 public Expresiones ANDExprP(Expresiones E)
 {
     if (currentToken.Tipo == TipoToken.TK_AND)
     {
         currentToken = lex.NextToken();
         Expresiones E1 = ANDExpr();
         And eAnd = new And(E, ANDExprP(E1));
         return eAnd;
     }
     else
     {
         return E;
     }
 }
예제 #3
0
        public Expresiones ANDExprP(Expresiones E)
        {
            if (currentToken.Tipo == TipoToken.TK_AND)
            {
                currentToken = lex.NextToken();
                try
                {
                    Expresiones E1 = ANDExpr();
                    And eAnd = new And(E, ANDExprP(E1));
                    return eAnd;
                }
                catch (Exception ex)
                {

                    throw ex;
                }
            }
            else
            {
                return E;
            }
        }