18 map<TokenType, string> mTokenDictionary;
21 void constructDictionary();
22 TokenType getTokenType(
const char& ch);
29 void setBlock(
const string &block);
30 const string& getBlock();
36 vector<Token> getTokens();
39 static void capitalize(
string& s);
48 inline void testSTokenize()
50 std::cout <<
"--- Testing STokenize -----\n";
53 string testString =
"apple is red, bannana is yellow";
56 while (mySTokenize.More()) {
57 mySweetToken = mySTokenize.nextToken();
58 cout <<
"token : " << mySweetToken << endl;
60 }
catch (
const char* e) {
61 cout <<
"something went wrong : " <<
"STokenize" << endl;
63 cout <<
"-------- End of STokenize test case -----\n\n";
Definition: stokenize.h:13