Wrapper for D_Parser and its corresponding D_ParserTables.
More...
#include <dparser.h>
Wrapper for D_Parser and its corresponding D_ParserTables.
Definition at line 145 of file dparser.h.
◆ parser()
| mcrl2::core::parser::parser |
( |
D_ParserTables & |
tables, |
|
|
D_AmbiguityFn |
ambiguity_fn = nullptr, |
|
|
D_SyntaxErrorFn |
syntax_error_fn = nullptr, |
|
|
std::size_t |
max_error_message_count = 1 |
|
) |
| |
|
explicit |
◆ ~parser()
| mcrl2::core::parser::~parser |
( |
| ) |
|
◆ announce()
| void mcrl2::core::parser::announce |
( |
D_ParseNode & |
node_ref | ) |
|
Callback function for nodes in the parse tree.
Definition at line 299 of file dparser.cpp.
◆ custom_parse_error()
| void mcrl2::core::parser::custom_parse_error |
( |
const std::string & |
message | ) |
const |
◆ destroy_parse_node()
| void mcrl2::core::parser::destroy_parse_node |
( |
const parse_node & |
node | ) |
|
◆ indent()
| std::string mcrl2::core::parser::indent |
( |
unsigned int |
count | ) |
const |
◆ parse()
| parse_node mcrl2::core::parser::parse |
( |
const std::string & |
text, |
|
|
unsigned int |
start_symbol_index = 0, |
|
|
bool |
partial_parses = false |
|
) |
| |
Parses a string. N.B. The user is responsible for destruction of the returned value by calling destroy_parse_node!!!
Definition at line 239 of file dparser.cpp.
◆ print_node() [1/2]
| std::string mcrl2::core::parser::print_node |
( |
const parse_node & |
node | ) |
const |
|
inline |
◆ print_node() [2/2]
| void mcrl2::core::parser::print_node |
( |
std::ostream & |
out, |
|
|
const parse_node & |
node |
|
) |
| const |
|
inline |
◆ print_symbol_table()
| void mcrl2::core::parser::print_symbol_table |
( |
| ) |
const |
◆ print_tree()
| void mcrl2::core::parser::print_tree |
( |
const parse_node & |
node, |
|
|
unsigned int |
level = 0 |
|
) |
| const |
◆ start_symbol_index()
| unsigned int mcrl2::core::parser::start_symbol_index |
( |
const std::string & |
name | ) |
const |
◆ symbol_table()
| const parser_table & mcrl2::core::parser::symbol_table |
( |
| ) |
const |
◆ truncate()
| std::string mcrl2::core::parser::truncate |
( |
const std::string & |
s, |
|
|
unsigned int |
max_size = 20 |
|
) |
| const |
◆ m_max_error_message_count
| std::size_t mcrl2::core::parser::m_max_error_message_count = 0UL |
◆ m_parser
| D_Parser* mcrl2::core::parser::m_parser |
◆ m_table
The documentation for this struct was generated from the following files: