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

int Transducer::insertNewSingleTransduction ( int const   tag,
int const   source 
)

Insertion of a single transduction, forcing create a new target state

Parameters:
tag the tag of the transduction being inserted
source the source state of the new transduction
Returns:
the target state

Definition at line 113 of file Transducer.C.

References newState(), and transitions.

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

{
  int state = newState();
  transitions[source].insert(pair<int, int>(tag, state));
  return state;
}


Generated by  Doxygen 1.6.0   Back to index