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

void RegExpCompiler::consume ( int  t  )  [private]

Consume the input

Parameters:
t the input to be consumed

Definition at line 107 of file RegExpCompiler.C.

References errorConsuming(), input, and token.

Referenced by Cola(), ColaLetra(), Esp(), Letra(), Postop(), Reservado(), and Term().

{
  if(token == t)
  {
    input = input.substr(1);
    if(input ==  "")
    {
      token = FIN_FICHERO;
    }
    else
    {
      token = input[0];
    }
  }
  else
  {
    errorConsuming(t);
  }
}


Generated by  Doxygen 1.6.0   Back to index