예제 #1
0
 public Expresiones Expression_prime(Expresiones E)
 {
     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;
 }
예제 #2
0
        public Expresiones ExprP(Expresiones E)
        {
            if (currentToken.Tipo == TipoToken.TK_OR)
            {

                currentToken = lex.NextToken();
                Expresiones E1 = Expr();
                Or eOr = new Or(E, ExprP(E1));
                return eOr;
            }
            else
            {
                return E;
            }
        }
예제 #3
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;
            }
        }