| Copyright | (c) Jorge Santiago Alvarez Cuadros 2016 |
|---|---|
| License | GPL-3 |
| Maintainer | sanjorgek@ciencias.unam.mx |
| Stability | experimental |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
| Extensions |
|
Data.Sigma
Contents
Description
Alphabet and symbols of languaje
Symbols
Symbols are character, and with Unicode CharSet we have a big amount of them.
Alphabets
enumWord :: Alphabet -> Wd -> Integer Source #
For every alphabet there is a function h that maps one symbol to one natural. For every h function there is a function that enumerete every words in that alphabet
closureAlph :: Alphabet -> [Wd] Source #
Gives the Kleene Closure for all alphabets. closureAlph is a infinite list of words.
lessKWords :: Alphabet -> Integer -> [Wd] Source #
For some alphabet S and a natural number n take all words of length n or less
kWords :: Alphabet -> Integer -> [Wd] Source #
For some alphabet S and a natural number n take all words of length n