language-toolkit-1.0.1.0: A set of tools for analyzing languages via logic and automata
Copyright(c) 2019 Dakotah Lambert
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

LTK.Learn.SL

Description

This module implements a string extension learner for the SL class.

Since: 0.3

Synopsis

Documentation

data SLG a Source #

A representation of an SL grammar.

Constructors

SLG 

Fields

Instances

Instances details
HasAlphabet SLG Source # 
Instance details

Defined in LTK.Learn.SL

Methods

alphabet :: SLG e -> Set e Source #

Grammar SLG Source # 
Instance details

Defined in LTK.Learn.SL

Methods

genFSA :: (NFData a, Ord a) => SLG a -> FSA Integer a Source #

augmentG :: Ord a => SLG a -> SLG a -> SLG a Source #

isSubGOf :: Ord a => SLG a -> SLG a -> Bool Source #

emptyG :: Ord a => SLG a Source #

Eq a => Eq (SLG a) Source # 
Instance details

Defined in LTK.Learn.SL

Methods

(==) :: SLG a -> SLG a -> Bool #

(/=) :: SLG a -> SLG a -> Bool #

Ord a => Ord (SLG a) Source # 
Instance details

Defined in LTK.Learn.SL

Methods

compare :: SLG a -> SLG a -> Ordering #

(<) :: SLG a -> SLG a -> Bool #

(<=) :: SLG a -> SLG a -> Bool #

(>) :: SLG a -> SLG a -> Bool #

(>=) :: SLG a -> SLG a -> Bool #

max :: SLG a -> SLG a -> SLG a #

min :: SLG a -> SLG a -> SLG a #

(Read a, Ord a) => Read (SLG a) Source # 
Instance details

Defined in LTK.Learn.SL

Show a => Show (SLG a) Source # 
Instance details

Defined in LTK.Learn.SL

Methods

showsPrec :: Int -> SLG a -> ShowS #

show :: SLG a -> String #

showList :: [SLG a] -> ShowS #

fSL :: Ord a => Int -> [a] -> SLG a Source #

Return the set of \(k\)-factors under successor in the given word. Factors are triples, where the first and last components are Booleans that indicate whether the factor is anchored at its head or tail, respectively, and the central component is the factor itself. If a word is short enough to not contain any \(k\)-factors, the entire word, appropriately anchored, is included in the set.