struct Panini::Alphabet

Defined in:

language.cr

Constant Summary

EPSILON = ""
NIL = Alphabet.new

an empty alphabet used as a dummy placeholder, esp. for PHI and EPSILON languages also used to denote that alphabet set need not be used for validating strings for a given language

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(symbols : Set(Char) = Set(Char).new) #

[View source]

Class Method Detail

def self.from(*chars : Char) #

[View source]

Instance Method Detail

def **(exponent) #

[View source]
def |(other) #

[View source]
def defines?(string) #

[View source]
def powers : Hash(Int32, Set(String)) #

[View source]
def symbols : Set(Char) #

[View source]