////////////////////////////////////////////////////////////////////////// actor called after successfully matching a C++-comment
| 55 | /////////////////////////////////////////////////////////////////////////////// |
| 56 | // actor called after successfully matching a C++-comment |
| 57 | void actor_cpp (const char *pfirst, const char *plast) |
| 58 | { |
| 59 | cout << "Parsing C++-comment" <<endl; |
| 60 | cout << "Matched (" << plast-pfirst << ") characters: "; |
| 61 | cout << "\"" << std::string(pfirst, plast) << "\"" << endl; |
| 62 | } |
| 63 | |
| 64 | /////////////////////////////////////////////////////////////////////////////// |
| 65 | // main entry point |