diff options
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Parser.h b/Parser.h new file mode 100644 index 0000000..58d062f --- /dev/null +++ b/Parser.h @@ -0,0 +1,18 @@ +#pragma once + +#include <iostream> +#include <istream> + +using std::istream; +using std::string; + +class Parser { +public: + void parse(string input) const; + +private: + istream & parse(const Parser & parser, istream & s) const; + friend istream & operator << (const Parser & parser, istream & s); + friend istream & operator >> (istream & s, const Parser & parser); +}; + |