1#ifndef INCLUDE_INJA_TOKEN_HPP_
2#define INCLUDE_INJA_TOKEN_HPP_
6#include "string_view.hpp"
52 Kind kind {Kind::Unknown};
53 nonstd::string_view text;
55 explicit constexpr Token() =
default;
56 explicit constexpr Token(Kind kind, nonstd::string_view text) : kind(kind), text(text) {}
58 std::string describe()
const {
62 case Kind::LineStatementClose:
67 return static_cast<std::string
>(text);
Helper-class for the inja Lexer.
Definition: token.hpp:13