| Copyright | (c) 2023-2024 Dakotah Lambert | 
|---|---|
| License | MIT | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
LTK.Parameters
Description
Many subregular classes are parameterized.
  In some cases, we know not only how to decide membership,
  but also the values of these parameters.
  As a general interface, each parameterization function
  returns a Maybe [Parameter e],
  where Nothing means the language is not in the class
  and Just xs indicates for which parameters this membership holds.
  The interpretation of the list differs per class;
  consult the individual functions' documentation for more information.
All arguments should be given in minimal form. This is never checked.
Since: 1.2
Synopsis
- data Parameter e
 - pTier :: (Ord n, Ord e) => (FSA n e -> Maybe [Parameter e]) -> FSA n e -> Maybe [Parameter e]
 - pDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pRDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pGDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pCB :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pAcom :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pSL :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 - pSP :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e]
 
Documentation
A named parameter.
Instances
| (Read e, Ord e) => Read (Parameter e) Source # | |
| Show e => Show (Parameter e) Source # | |
| Eq e => Eq (Parameter e) Source # | |
| Ord e => Ord (Parameter e) Source # | |
Defined in LTK.Parameters  | |
pTier :: (Ord n, Ord e) => (FSA n e -> Maybe [Parameter e]) -> FSA n e -> Maybe [Parameter e] Source #
If there are neutral symbols, test a class and prepend to its parameters the set of salient symbols.
pDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e] Source #
Return the length of the longest relevant suffix.
pRDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e] Source #
Return the length of the longest relevant prefix.
pGDef :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e] Source #
Return the length of the longest relevant suffix or prefix, whichever is longer.
pAcom :: (Ord n, Ord e) => FSA n e -> Maybe [Parameter e] Source #
Return the threshold at which symbol counting saturates.