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

void RegExpCompiler::Elem (  )  [private]

RDP function

Definition at line 415 of file RegExpCompiler.C.

References ColaLetra(), error(), isReserved(), Letra(), letter, and token.

Referenced by Lista().

{
  if(!isReserved(token) || token == '\\')
  {
    Letra();
    int rango1 = letter;
    ColaLetra();
    int rango2 = letter;

    if(rango1 > rango2)
    {
      error();
    }
    else
    {
      for(int i = rango1; i <= rango2; i++)
      {
        brackets.insert(i);
      }
    }
  }
  else
  {
    error();
  }
}


Generated by  Doxygen 1.6.0   Back to index