예제 #1
0
파일: fa.cpp 프로젝트: meyersh/gimli
 string toFile() 
 {
     stringstream ss;
     ss << alphabet.toString() << endl
        << nstates() << endl
        << n_accepting << endl
        << accepting() << endl
        << transition_table.toFAString();
     
     return ss.str();
                 
 }
예제 #2
0
파일: fa.cpp 프로젝트: meyersh/gimli
    string toString() 
    {
        stringstream ss;
        
        ss << "alphabet: " << alphabet.toString() << endl
           << "nstates : " << nstates() << endl
           << "astates : " << n_accepting
           << " (" << accepting() << ')' << endl
           << "Transitions: " << endl
           << transition_table.toString() << endl;

        return ss.str();
        
    }