mavtables  0.2.1
MAVLink router and firewall.
Functions
config Namespace Reference

Functions

std::ostream & print_node (std::ostream &os, const config::parse_tree::node &node, bool print_location, const std::string &prefix)
 
template<typename Input >
std::unique_ptr< config::parse_tree::node > parse (Input &in)
 

Function Documentation

◆ parse()

template<typename Input >
std::unique_ptr<config::parse_tree::node> config::parse ( Input &  in)

Parses given input into an abstract syntax tree.

Note
The returned AST is only valid while the input exists. Therefore, the input should be kept until the AST passes out of scope.
Template Parameters
InputThe type of input, usually either read_input or string_input (see PEGTL).
Parameters
inThe input, from read_input etc, to parse.
Returns
The abstract syntax tree parsed from the input.

Definition at line 391 of file config_grammar.hpp.

Here is the caller graph for this function: