Class for parsing an inja Template.
More...
#include <inja.hpp>
Class for parsing an inja Template.
Definition at line 2870 of file inja.hpp.
◆ Parser()
inja::Parser::Parser |
( |
const ParserConfig & |
parser_config, |
|
|
const LexerConfig & |
lexer_config, |
|
|
TemplateStorage & |
template_storage, |
|
|
const FunctionStorage & |
function_storage |
|
) |
| |
|
inlineexplicit |
◆ add_json_literal()
void inja::Parser::add_json_literal |
( |
const char * |
content_ptr | ) |
|
|
inlineprivate |
◆ add_operator()
void inja::Parser::add_operator |
( |
| ) |
|
|
inlineprivate |
◆ add_to_template_storage()
void inja::Parser::add_to_template_storage |
( |
nonstd::string_view |
path, |
|
|
std::string & |
template_name |
|
) |
| |
|
inlineprivate |
◆ get_next_token()
void inja::Parser::get_next_token |
( |
| ) |
|
|
inlineprivate |
◆ get_peek_token()
void inja::Parser::get_peek_token |
( |
| ) |
|
|
inlineprivate |
◆ load_file()
std::string inja::Parser::load_file |
( |
nonstd::string_view |
filename | ) |
|
|
inline |
◆ parse() [1/2]
Template inja::Parser::parse |
( |
nonstd::string_view |
input | ) |
|
|
inline |
◆ parse() [2/2]
Template inja::Parser::parse |
( |
nonstd::string_view |
input, |
|
|
nonstd::string_view |
path |
|
) |
| |
|
inline |
◆ parse_expression()
◆ parse_into()
void inja::Parser::parse_into |
( |
Template & |
tmpl, |
|
|
nonstd::string_view |
path |
|
) |
| |
|
inlineprivate |
◆ parse_into_template()
void inja::Parser::parse_into_template |
( |
Template & |
tmpl, |
|
|
nonstd::string_view |
filename |
|
) |
| |
|
inline |
◆ parse_statement()
bool inja::Parser::parse_statement |
( |
Template & |
tmpl, |
|
|
Token::Kind |
closing, |
|
|
nonstd::string_view |
path |
|
) |
| |
|
inlineprivate |
◆ throw_parser_error()
void inja::Parser::throw_parser_error |
( |
const std::string & |
message | ) |
|
|
inlineprivate |
◆ arguments
◆ block_statement_stack
◆ config
const ParserConfig& inja::Parser::config |
|
private |
◆ current_block
BlockNode* inja::Parser::current_block {nullptr} |
|
private |
◆ current_brace_level
size_t inja::Parser::current_brace_level {0} |
|
private |
◆ current_bracket_level
size_t inja::Parser::current_bracket_level {0} |
|
private |
◆ current_expression_list
◆ current_paren_level
size_t inja::Parser::current_paren_level {0} |
|
private |
◆ for_statement_stack
◆ function_stack
std::stack<std::pair<FunctionNode*, size_t> > inja::Parser::function_stack |
|
private |
◆ function_storage
◆ have_peek_tok
bool inja::Parser::have_peek_tok {false} |
|
private |
◆ if_statement_stack
◆ json_literal_start
nonstd::string_view inja::Parser::json_literal_start |
|
private |
◆ lexer
Lexer inja::Parser::lexer |
|
private |
◆ operator_stack
std::stack<std::shared_ptr<FunctionNode> > inja::Parser::operator_stack |
|
private |
◆ peek_tok
Token inja::Parser::peek_tok |
|
private |
◆ template_storage
◆ tok
The documentation for this class was generated from the following file:
- crossfire-crossfire-server/utils/mapper/inja.hpp