https://github.com/johnynek/unuhi
https://github.com/johnynek/unuhi
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/johnynek/unuhi
- Owner: johnynek
- Created: 2018-08-25T20:29:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-09-05T02:24:11.000Z (almost 8 years ago)
- Last Synced: 2025-03-23T23:26:02.406Z (about 1 year ago)
- Language: Scala
- Size: 42 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unuhi
Parsing Typeclasses for cats and scala (this could potentially graduate into a cats-parsing project). This is at a very early stage and has yet to publish any artifacts.
The main goals are:
1. define ParserA an Alternative with Delay with some additional text parsing functions very similar to [Haskell's Text.Parser.Parsing](https://hackage.haskell.org/package/parsers-0.12.9/docs/Text-Parser-Combinators.html#g:2) typeclass.
2. define ParserM a Monad with ParserA for monadic parsing.
3. write some reusable laws for these typeclasses
4. write instances of these typeclasses for commonly used scala parsing libraries
5. give an internal implementations as examples.
6. provide some example parsers using only the typeclass which are suitable for running with any instance (e.g. Json example).