class

Pegasus::Nfa::RangeTransition

Inherits Pegasus::Nfa::Transition / Reference / Object

A transition that accepts several ranges of bytes.

Constructors

new(ranges : Array(Range(UInt8, UInt8)), inverted : Bool)

Creates a new range transition.

Source

Instance methods

char_states

Returns the characters this transition accepts for transitions.

Source
inverted

If this is true, characters must not be in the ranges to be accepted.

Source
ranges

The ranges this transition accepts / rejects.

Source