Computer Laboratory

tesla::internal Namespace Reference

Classes

class  NFAParser
 
struct  NFAStateHash
 
class  DFABuilder
 

Typedefs

typedef std::set< unsigned > NFAState
 

Functions

string stringifyTransitionVector (SmallVector< Transition *, 16 > &Ts)
 
string stringifyTransitionVectors (TransitionVectors &TVs)
 
raw_ostream & operator<< (raw_ostream &Out, const NFAState &S)
 
raw_ostream & operator<< (raw_ostream &Out, const unordered_map< NFAState, State *, NFAStateHash > &M)
 

Typedef Documentation

typedef std::set<unsigned> tesla::internal::NFAState

Definition at line 685 of file Automaton.cpp.

Function Documentation

raw_ostream& tesla::internal::operator<< ( raw_ostream &  Out,
const NFAState &  S 
)

Definition at line 686 of file Automaton.cpp.

686  {
687  for (unsigned i : S)
688  Out << i << " ";
689  Out << "\n";
690  return Out;
691 }
raw_ostream& tesla::internal::operator<< ( raw_ostream &  Out,
const unordered_map< NFAState, State *, NFAStateHash > &  M 
)

Definition at line 700 of file Automaton.cpp.

701  {
702  for (auto I : M) Out << (I.second->ID()) << " = " << I.first;
703  return Out;
704 }
string tesla::internal::stringifyTransitionVector ( SmallVector< Transition *, 16 > &  Ts)

Definition at line 489 of file Automaton.cpp.

Referenced by stringifyTransitionVectors().

489  {
490  stringstream ss;
491  for (auto T : Ts) {
492  ss << T->String() << " ";
493  }
494  return ss.str();
495 }

+ Here is the caller graph for this function:

string tesla::internal::stringifyTransitionVectors ( TransitionVectors &  TVs)

Definition at line 497 of file Automaton.cpp.

References stringifyTransitionVector().

497  {
498  stringstream ss;
499  ss << "[";
500  for (auto& TV : TVs) {
501  ss << "{";
502  ss << stringifyTransitionVector(TV);
503  ss << "}, ";
504  }
505  ss << "]";
506  return ss.str();
507 }

+ Here is the call graph for this function: