Logo Search packages:      
Sourcecode: lttoolbox version File versions  Download package

bool RegExpCompiler::isReserved ( int const   t  )  [private]

Detect if it is a reserved token

Parameters:
t the token
Returns:
true if the token is reserved

Definition at line 69 of file RegExpCompiler.C.

Referenced by ColaLetra(), Elem(), Esp(), Letra(), Lista(), Postop(), Reservado(), RExpr(), RExprp(), S(), and Term().

{
  switch(t) 
  {
    case '(':
    case ')':
    case '[':
    case ']':
    case '*':
    case '?':
    case '+':
    case '-':
    case '^':
    case '\\':
    case '|':
    case FIN_FICHERO:
      return true;
 
    default:
      return false;
  }
}


Generated by  Doxygen 1.6.0   Back to index