Class Capture

Inheritance Relationships

Base Type

Class Documentation

class Capture : public peg::Ope

Public Types

using MatchAction = std::function<void(const char *s, size_t n, Context &c)>

Public Functions

inline Capture(const std::shared_ptr<Ope> &ope, MatchAction ma)
inline virtual size_t parse_core(const char *s, size_t n, SemanticValues &vs, Context &c, std::any &dt) const override
inline virtual void accept(Visitor &v) override

Public Members

std::shared_ptr<Ope> ope_
MatchAction match_action_