use hpp extension for headers

This commit is contained in:
Daniel Sipka 2015-04-12 15:35:13 +02:00
parent c8152686df
commit 7e124ec47b
25 changed files with 47 additions and 47 deletions

26
src/token.hpp Normal file
View file

@ -0,0 +1,26 @@
#ifndef _MSTCH_TOKEN_H_
#define _MSTCH_TOKEN_H_
#include <string>
namespace mstch {
enum class token_type {
text, variable, section_open, section_close, inverted_section_open,
unescaped_variable, comment, partial
};
class token {
private:
token_type type_val;
std::string content_val;
std::string raw_val;
public:
token(const std::string& raw_token);
token_type type() const;
std::string content() const;
std::string raw() const;
};
}
#endif //_MSTCH_TOKEN_H_