Closed Cthaeeh closed 1 year ago
E.g.
std::expected<X, std::string> parseX( const std::string &str) { auto result = lexy::parse<grammar::Table>(lexy::string_input(str), lexy_ext::report_error); if (result.is_success()) { return result.value(); } else { return std::unexpected( ? ); //<- } }
Or do I have to implement my own lexy_ext::report_error in some form?
lexy_ext::report_error
E.g.
Or do I have to implement my own
lexy_ext::report_error
in some form?