Portability | portable |
---|---|
Stability | alpha |
Maintainer | Krzysztof Langner <klangner@gmail.com> |
Safe Haskell | Safe-Inferred |
- data Token
- foldCase :: [Text] -> [Text]
- getWords :: [Token] -> [Text]
- tokenize :: Text -> [Token]
- wordParser :: Parser
- numberParser :: Parser
- punctuationParser :: Parser
- symbolParser :: Parser
- spaceParser :: Parser
- allParser :: Parser
Documentation
Token type
getWords :: [Token] -> [Text]Source
Exctract all words from tokens
getWords "one two." == ["one", "two"]
tokenize :: Text -> [Token]Source
Split text into tokens
tokenize "one two." == [Word "one", Whitespace, Word "two", "Separator "."]
wordParser :: ParserSource
Parse word
numberParser :: ParserSource
Parse number
punctuationParser :: ParserSource
Parse punctuation
symbolParser :: ParserSource
Parse symbol
spaceParser :: ParserSource
Parse whitespaces