#include <cstdio>
#include <lexy/_detail/config.hpp>
#include <lexy/dsl/code_point.hpp>
#include <lexy/input/range_input.hpp>
#include <lexy/lexeme.hpp>
Go to the source code of this file.
Classes | |
struct | lexy::cfile_output_iterator |
struct | lexy::stderr_output_iterator |
struct | lexy::stdout_output_iterator |
struct | lexy::visualization_options |
Options that control visualization. More... | |
Namespaces | |
lexy | |
lexy::_detail | |
Enumerations | |
enum | lexy::_detail::color { lexy::_detail::color::reset = 0, lexy::_detail::color::bold = 1, lexy::_detail::color::faint = 2, lexy::_detail::color::italic = 3, lexy::_detail::color::black = 30, lexy::_detail::color::red = 31, lexy::_detail::color::green = 32, lexy::_detail::color::yellow = 33, lexy::_detail::color::blue = 34, lexy::_detail::color::magenta = 35, lexy::_detail::color::cyan = 36, lexy::_detail::color::white = 37 } |
enum | lexy::visualization_flags { lexy::visualize_default = 0, lexy::visualize_use_unicode = 1 << 0, lexy::visualize_use_color = 1 << 1, lexy::visualize_use_symbols = 1 << 2, lexy::visualize_fancy = visualize_use_unicode | visualize_use_color | visualize_use_symbols, lexy::visualize_space = 1 << 3 } |
Functions | |
template<typename Encoding > | |
constexpr auto | lexy::_detail::make_literal_lexeme (const typename Encoding::char_type *str, std::size_t length) |
constexpr visualization_flags | lexy::operator| (visualization_flags lhs, visualization_flags rhs) noexcept |
template<typename T > | |
std::size_t | lexy::visualization_display_width (const T &obj, visualization_options opts={}) |
template<typename T > | |
void | lexy::visualize (std::FILE *file, const T &obj, visualization_options opts={}) |
Writes the visualization to the FILE. More... | |
template<typename OutputIt , typename Tree , typename = decltype(LEXY_DECLVAL(Tree&).traverse())> | |
OutputIt | lexy::visualize_to (OutputIt out, const Tree &tree, visualization_options opts={}) |
template<typename OutputIt > | |
OutputIt | lexy::visualize_to (OutputIt out, lexy::code_point cp, visualization_options opts={}) |
template<typename OutputIt , typename Reader > | |
OutputIt | lexy::visualize_to (OutputIt out, lexy::lexeme< Reader > lexeme, [[maybe_unused]] visualization_options opts={}) |
template<color CodeHead, color... CodeTail, typename OutIt > | |
constexpr OutIt | lexy::_detail::write_color (OutIt out, visualization_options opts) |
template<typename OutIt > | |
constexpr OutIt | lexy::_detail::write_ellipsis (OutIt out, visualization_options opts) |
template<int N = 16, typename OutIt , typename... Args> | |
constexpr OutIt | lexy::_detail::write_format (OutIt out, const char *fmt, const Args &... args) |
template<typename OutIt , typename Fn > | |
constexpr OutIt | lexy::_detail::write_special_char (OutIt out, visualization_options opts, Fn inner) |
template<typename OutIt > | |
constexpr OutIt | lexy::_detail::write_str (OutIt out, const char *str) |
template<typename OutIt > | |
constexpr OutIt | lexy::_detail::write_str (OutIt out, const LEXY_CHAR8_T *str) |