Go to the documentation of this file.
4 #ifndef LEXY_DSL_CONTEXT_FLAG_HPP_INCLUDED
5 #define LEXY_DSL_CONTEXT_FLAG_HPP_INCLUDED
12 template <
typename Id>
15 template <
typename Id,
bool InitialValue>
18 template <
typename NextParser>
21 template <
typename Context,
typename Reader,
typename... Args>
33 template <
typename Id,
bool Value>
36 template <
typename NextParser>
39 template <
typename Context,
typename Reader,
typename... Args>
48 template <
typename Id>
51 template <
typename NextParser>
54 template <
typename Context,
typename Reader,
typename... Args>
64 template <
typename Id,
bool Value>
67 template <
typename Reader>
70 template <
typename ControlBlock>
71 constexpr
bool try_parse(
const ControlBlock* cb,
const Reader&)
76 template <
typename Context>
80 template <
typename NextParser,
typename Context,
typename... Args>
87 template <
typename NextParser>
91 template <
typename Id>
94 template <
typename NextParser>
97 template <
typename Context,
typename Reader,
typename... Args>
109 template <
typename Id>
112 template <
bool InitialValue = false>
118 constexpr
auto set()
const
148 template <
typename Id>
152 #endif // LEXY_DSL_CONTEXT_FLAG_HPP_INCLUDED
LEXY_PARSER_FUNC bool finish(Context &context, Reader &reader, Args &&... args)
constexpr auto context_flag
Declares a flag.
static constexpr T & get(const ControlBlock *cb)
static LEXY_PARSER_FUNC bool parse(Context &context, Reader &reader, Args &&... args)
constexpr bool try_parse(const ControlBlock *cb, const Reader &)
constexpr auto set() const
static LEXY_PARSER_FUNC bool parse(Context &context, Reader &reader, Args &&... args)
static LEXY_PARSER_FUNC bool parse(Context &context, Reader &reader, Args &&... args)
constexpr auto toggle() const
constexpr auto parse(const Input &input, const ErrorCallback &callback)
Parses the production into a value, invoking the callback on error.
constexpr void link(Context &context)
constexpr auto reset() const
constexpr auto is_set() const
constexpr void cancel(Context &)
constexpr auto is_reset() const
static LEXY_PARSER_FUNC bool parse(Context &context, Reader &reader, Args &&... args)
constexpr auto create() const
constexpr void unlink(Context &context)
constexpr auto value() const
constexpr auto flag(Rule)