1 #ifndef INCLUDE_INJA_TOKEN_HPP_
2 #define INCLUDE_INJA_TOKEN_HPP_
51 Kind kind {Kind::Unknown};
52 std::string_view text;
54 explicit constexpr
Token() =
default;
55 explicit constexpr
Token(Kind kind, std::string_view text): kind(kind), text(text) {}
57 std::string describe()
const {
61 case Kind::LineStatementClose:
66 return static_cast<std::string
>(text);
Helper-class for the inja Lexer.
Definition: token.hpp:12