optimizations

This commit is contained in:
Daniel Sipka 2015-04-13 16:35:12 +02:00
parent 6369a38800
commit e10e9b6d86
14 changed files with 156 additions and 55 deletions

View file

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