uu-parsinglib 2.8.1 → 2.8.1.1
raw patch · 2 files changed
+19/−19 lines, 2 files
Files
src/Text/ParserCombinators/UU/Demo/Examples.hs view
@@ -95,21 +95,21 @@ -- show_demos :: IO () show_demos = - do DEMO (pa, "a")- DEMO (pa, "" )- DEMO (pa, "b")- DEMO (((++) <$> pa <*> pa), "bbab")- DEMO (pa, "ba")- DEMO (pa, "aa")- DEMO ((pCount pa :: Parser Int), "aaa")- DEMO ((do {l <- pCount pa; pExact l pb}), "aaacabbbbb")- DEMO ((amb ( (++) <$> pa2 <*> pa3 <|> (++) <$> pa3 <*> pa2)), "aaaaa")- DEMO ((pList pLower), "doaitse")- DEMO (paz, "abc2ez")- DEMO ((max <$> pParens ((+1) <$> wfp) <*> wfp `opt` 0), "((()))()(())")- DEMO ((pa <|> pb <?> justamessage), "c")- DEMO ((amb (pEither parseIntString pIntList)), "(123;456;789)")--- DEMO ((pa *> pMunch ( `elem` "^=*") <* pb), "a^=^**^^b")+ do DEMO(pa, "a")+ DEMO(pa, "" )+ DEMO(pa, "b")+ DEMO(((++) <$> pa <*> pa), "bbab")+ DEMO(pa, "ba")+ DEMO(pa, "aa")+ DEMO((pCount pa :: Parser Int), "aaa")+ DEMO((do {l <- pCount pa; pExact l pb}), "aaacabbbbb")+ DEMO((amb ( (++) <$> pa2 <*> pa3 <|> (++) <$> pa3 <*> pa2)), "aaaaa")+ DEMO((pList pLower), "doaitse")+ DEMO(paz, "abc2ez")+ DEMO((max <$> pParens ((+1) <$> wfp) <*> wfp `opt` 0), "((()))()(())")+ DEMO((pa <|> pb <?> justamessage), "c")+ DEMO((amb (pEither parseIntString pIntList)), "(123;456;789)")+-- DEMO((pa *> pMunch ( `elem` "^=*") <* pb), "a^=^**^^b") -- | The fuction @`run`@ runs the parser and shows both the result, and the correcting steps which were taken during the parsing process. run :: Show t => Parser t -> String -> IO ()
uu-parsinglib.cabal view
@@ -1,11 +1,11 @@ Name: uu-parsinglib-Version: 2.8.1+Version: 2.8.1.1 Build-Type: Simple License: MIT Copyright: S Doaitse Swierstra License-file: LICENSE Author: Doaitse Swierstra, Utrecht University-Maintainer: Doaitse Swierstra +Maintainer: Doaitse Swierstra Stability: stable, but evolving Homepage: http://www.cs.uu.nl/wiki/bin/view/HUT/ParserCombinators Bug-reports: mailto:doaitse@swierstra.net @@ -28,8 +28,8 @@ . The file "Text.ParserCombinators.UU.README" contains some references to background information. .- We maintain a low frequency mailing for discussing the package. You can subscribe at: <https://mail.cs.uu.nl/mailman/listinfo/parsing>-Category: Parsing, Text+ We maintain a low frequency mailing for discussing the package. You can subscribe at: <http://lists.science.uu.nl/mailman/listinfo/parsing>+Category: Parsing,Text,ParserCombinators cabal-version: >= 1.6