4 #ifndef LEXY_ACTION_MATCH_HPP_INCLUDED
5 #define LEXY_ACTION_MATCH_HPP_INCLUDED
21 template <
typename Error>
27 template <
typename Event,
typename... Args>
28 constexpr
int on(
_mh&, Event,
const Args&...)
34 template <
typename Production,
typename State>
40 return rule_parse_result && !
_failed;
47 template <
typename State,
typename Input>
60 template <
typename U = State>
64 template <
typename Production>
67 auto reader =
input.reader();
68 return lexy::do_action<Production, result_type>(
handler(),
_state, reader);
72 template <
typename Production,
typename Input>
73 constexpr
bool match(
const Input& input)
77 template <
typename Production,
typename Input,
typename State>
78 constexpr
bool match(
const Input& input, State& state)
82 template <
typename Production,
typename Input,
typename State>
83 constexpr
bool match(
const Input& input,
const State& state)
89 #endif // LEXY_ACTION_MATCH_HPP_INCLUDED