This commit is contained in:
Daniel Sipka 2015-04-13 02:34:27 +02:00
parent 244477f0a0
commit 8d1336d7df
9 changed files with 47 additions and 55 deletions

View file

@ -10,16 +10,15 @@ namespace mstch {
text, variable, section_open, section_close, inverted_section_open,
unescaped_variable, comment, partial
};
token(const std::string& raw_token);
type token_type() const;
std::string content() const;
std::string raw() const;
private:
type type_val;
std::string content_val;
std::string raw_val;
std::tuple<int,int,type> token_info(const std::string& inside);
public:
token(const std::string& raw_token);
type token_type() const;
std::string content() const;
std::string raw() const;
};
}