class Pegasus::Nfa::RangeTransition

Overview

A transition that accepts several ranges of bytes.

Defined in:

pegasus/nfa.cr
pegasus/nfa_to_dfa.cr

Constructors

Instance Method Summary

Instance methods inherited from class Pegasus::Nfa::Transition

char_states char_states

Constructor Detail

def self.new(ranges : Array(Range(UInt8, UInt8)), inverted : Bool) #

Creates a new range transition.


[View source]

Instance Method Detail

def char_states #
Description copied from class Pegasus::Nfa::Transition

Returns the characters this transition accepts for transitions.


[View source]
def inverted : Bool #

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


[View source]
def ranges : Array(Range(UInt8, UInt8)) #

The ranges this transition accepts / rejects.


[View source]