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

void RegExpCompiler::Cola (  )  [private]

RDP function

Definition at line 166 of file RegExpCompiler.C.

References alphabet, consume(), error(), Transducer::getInitial(), Transducer::insertNewSingleTransduction(), Transducer::linkStates(), RExpr(), state, token, and transducer.

Referenced by S().

{
  if(token == FIN_FICHERO || token == ')')
  {
  }
  else if(token == '|')
  {
    int e = state;
    state = transducer.getInitial();
    consume('|');
    RExpr();
    Cola();
   
    state = transducer.insertNewSingleTransduction(alphabet("", ""), state);
    transducer.linkStates(e, state, alphabet("", ""));
  }
  else
  {
    error();
  }
}


Generated by  Doxygen 1.6.0   Back to index