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

void Transducer::setFinal ( int const   state,
bool  value = true 
)

Set the state as a final or not, yes by default

Parameters:
state the state
value if true, the state is set as final state

Definition at line 188 of file Transducer.C.

References finals.

Referenced by RegExpCompiler::compile(), RegExpCompiler::Esp(), Compiler::insertEntryTokens(), and RegExpCompiler::Term().

{
  if(valor)
  {
    finals.insert(state);
  }
  else
  {
    finals.erase(state);
  }
}


Generated by  Doxygen 1.6.0   Back to index