slang::ast::SequenceRepetition struct

Encodes a repetition of some sub-sequence.

Public types

enum Kind { Consecutive, Nonconsecutive, GoTo }
The kind of repetition.
enum class AdmitsEmpty { Yes, No, Depends }
Defines ways in which a sequence may admit an empty match.

Public functions

auto admitsEmpty() const -> AdmitsEmpty
Classifies the repetition as admitting an empty match or not.

Public variables

SequenceRange range
The range of cycles over which to repeat.

Enum documentation

enum slang::ast::SequenceRepetition::Kind

The kind of repetition.

Enumerators
Consecutive

A repetition with a match on each consecutive cycle.

Nonconsecutive

A nonconsecutive repetition that does not necessarily end at the last iterative match.

GoTo

A nonconsecutive repetition which ends at the last iterative match.

enum class slang::ast::SequenceRepetition::AdmitsEmpty

Defines ways in which a sequence may admit an empty match.

Enumerators
Yes

Yes, the sequence admits an empty match.

No

No, the sequence does not admit an empty match.

Depends

The sequence may or may not admit an empty match.