Panini::Language
Inherits Reference < Object
Constants
EPSILON = Lang.from(Alphabet::EPSILON)
PHI = Lang.new
Constructors
new(operation : Regularity, *constituents : Language, ignore_epsilon = false)
Sourcenew(*, membership = NO_MEMBERSHIP, criterion : String -> Bool = REJECT_ALL, alphabet : Panini::Alphabet = Alphabet::NIL, min_size : Int32 = 0, max_size : Int32 = INFINITY, name : String = Helper.random_name)
Sourcenew(*, alphabets : Tuple, **named_args)
SourceClass methods
from(criterion : String -> Bool)
Sourcefrom(*strings : String)
Sourcefrom(*symbols : Char)
SourceInstance methods
**(n, ignore_epsilon = false)
Sourcealphabet
Sourceincludes?(string : String)
only membership is inclusion type, rest all are in reality exclusion types if membership test passes, language contains the string if other tests fail, language does not contain the string if all other tests pass, only then language contains the string
includes_epsilon?
Sourcemax_size
Sourcemembership
Sourcemin_size
Sourcename
Sourcenfa_datum
Sourceregular?
Sourceto_dfa
Sourceto_nfa
Sourcewords(size)
Source