Class Repetition

Inheritance Relationships

Base Type

Class Documentation

class Repetition : public peg::Ope

Public Functions

inline Repetition(const std::shared_ptr<Ope> &ope, size_t min, size_t max)
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
inline bool is_zom() const

Public Members

std::shared_ptr<Ope> ope_
size_t min_
size_t max_
const std::bitset<256> *span_bitset_ = nullptr

Public Static Functions

static inline std::shared_ptr<Repetition> zom(const std::shared_ptr<Ope> &ope)
static inline std::shared_ptr<Repetition> oom(const std::shared_ptr<Ope> &ope)
static inline std::shared_ptr<Repetition> opt(const std::shared_ptr<Ope> &ope)