Crossfire Server, Trunk
|
Class for lexing an inja Template. More...
#include <inja.hpp>
Public Member Functions | |
SourceLocation | current_position () const |
const LexerConfig & | get_config () const |
Lexer (const LexerConfig &config) | |
Token | scan () |
void | start (nonstd::string_view input) |
Private Member Functions | |
Token | make_token (Token::Kind kind) const |
Token | scan_body (nonstd::string_view close, Token::Kind closeKind, nonstd::string_view close_trim=nonstd::string_view(), bool trim=false) |
Token | scan_id () |
Token | scan_number () |
Token | scan_string () |
void | skip_whitespaces_and_first_newline () |
void | skip_whitespaces_and_newlines () |
Static Private Member Functions | |
static nonstd::string_view | clear_final_line_if_whitespace (nonstd::string_view text) |
Private Attributes | |
const LexerConfig & | config |
nonstd::string_view | m_in |
MinusState | minus_state |
size_t | pos |
State | state |
size_t | tok_start |
|
strongprivate |
|
strongprivate |
|
inlineexplicit |
|
inlinestaticprivate |
Definition at line 2184 of file inja.hpp.
References rotate-tower::result, and guild_entry::text.
|
inline |
Definition at line 2202 of file inja.hpp.
References inja::get_source_location().
Referenced by inja::Parser::throw_parser_error().
|
inline |
Definition at line 2354 of file inja.hpp.
Referenced by inja::Parser::parse_into_template().
|
inlineprivate |
Definition at line 2154 of file inja.hpp.
References inja::string_view::slice().
|
inline |
Definition at line 2219 of file inja.hpp.
References inja::string_view::slice(), inja::string_view::starts_with(), dragon::state, and guild_entry::text.
Referenced by inja::Parser::get_next_token(), and inja::Parser::get_peek_token().
|
inlineprivate |
Definition at line 1974 of file inja.hpp.
References inja::string_view::starts_with(), dragon::state, and trim().
|
inlineprivate |
Definition at line 2136 of file inja.hpp.
References arch2xml::escape().
|
inlineprivate |
|
inlineprivate |
|
inline |
Definition at line 2206 of file inja.hpp.
References inja::string_view::starts_with(), and dragon::state.
Referenced by inja::Parser::parse_into().
|
private |