use hpp extension for headers
This commit is contained in:
parent
c8152686df
commit
7e124ec47b
25 changed files with 47 additions and 47 deletions
26
src/token.hpp
Normal file
26
src/token.hpp
Normal 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_
|
Loading…
Add table
Add a link
Reference in a new issue