Skip to content

🗳️ Simple Haskell parsing library

License

Notifications You must be signed in to change notification settings

giuuliorusso/simparser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimParser

CI

Simple Haskell parsing library.

Usage

import SimParser

-- GHCI Examples

> parse digit "012345"
Right ('0',"12345")

> parse (char 'x') "abc"
Left (ParserError "Parsing failed: expected 'x', found 'a'")

> parse (some digit) "012345abc"
Right ("012345","abc")

> parse (some (digit <|> letter)) "012345abc"
Right ("012345abc","")

> parse int "-10n"
Right (-10,"n")

Acknowledgements

SimParser is based on Graham Hutton's Functional parsing library [YouTube].

License

MIT

About

🗳️ Simple Haskell parsing library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published