class Pegasus::Nfa::RangeTransition
- Pegasus::Nfa::RangeTransition
- Pegasus::Nfa::Transition
- Reference
- Object
Overview
A transition that accepts several ranges of bytes.
Defined in:
pegasus/nfa.crpegasus/nfa_to_dfa.cr
Constructors
-
.new(ranges : Array(Range(UInt8, UInt8)), inverted : Bool)
Creates a new range transition.
Instance Method Summary
-
#char_states
Returns the characters this transition accepts for transitions.
-
#inverted : Bool
If this is true, characters must not be in the ranges to be accepted.
-
#ranges : Array(Range(UInt8, UInt8))
The ranges this transition accepts / rejects.
Instance methods inherited from class Pegasus::Nfa::Transition
char_states
char_states
Constructor Detail
Creates a new range transition.
Instance Method Detail
def char_states
#
Description copied from class Pegasus::Nfa::Transition
Returns the characters this transition accepts for transitions.
The ranges this transition accepts / rejects.