Options that control visualization. More...
#include <visualize.hpp>
Public Member Functions | |
constexpr bool | is_set (visualization_flags f) const noexcept |
constexpr visualization_options | reset (visualization_flags f) const noexcept |
Public Attributes | |
visualization_flags | flags = visualize_default |
Boolean flags. More... | |
unsigned char | max_lexeme_width = 0 |
unsigned char | max_tree_depth = max_tree_depth_limit |
unsigned char | tab_width = 0 |
Static Public Attributes | |
static constexpr unsigned char | max_tree_depth_limit = 32 |
Friends | |
constexpr friend visualization_options | operator| (visualization_options lhs, visualization_flags rhs) noexcept |
Options that control visualization.
Definition at line 40 of file visualize.hpp.
|
inlineconstexprnoexcept |
Definition at line 57 of file visualize.hpp.
|
inlineconstexprnoexcept |
Definition at line 62 of file visualize.hpp.
|
friend |
Definition at line 69 of file visualize.hpp.
visualization_flags lexy::visualization_options::flags = visualize_default |
Boolean flags.
Definition at line 45 of file visualize.hpp.
unsigned char lexy::visualization_options::max_lexeme_width = 0 |
The maximal width when visualizing a lexeme. 0 means unlimited.
Definition at line 52 of file visualize.hpp.
unsigned char lexy::visualization_options::max_tree_depth = max_tree_depth_limit |
The maximal depth when visualizing a tree. Must be <= max_tree_depth_limit.
Definition at line 49 of file visualize.hpp.
|
staticconstexpr |
Definition at line 42 of file visualize.hpp.
unsigned char lexy::visualization_options::tab_width = 0 |
How many spaces are printed for a tab character. 0 means it is printed as escaped control character.
Definition at line 55 of file visualize.hpp.