Esempio n. 1
0
 public Expresiones Expression_prime(Expresiones E)
 {
     try
     {
         if (currentToken.Tipo == Lexico.TipoToken.TK_OR)
         {
             currentToken = lex.NextToken();
             Expresiones E1 = Expression();
             Or eor = new Or(E, Expression_prime(E1));
             return eor;
         }
         return E;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Esempio n. 2
0
        public Expresiones ExprP(Expresiones E)
        {
            if (currentToken.Tipo == TipoToken.TK_OR)
            {
                currentToken = lex.NextToken();
                try
                {
                    Expresiones E1 = Expr();
                    Or eOr = new Or(E, ExprP(E1));
                    return eOr;
                }
                catch (Exception ex)
                {
                    throw ex;
                }

            }
            else
            {
                return E;
            }
        }