https://github.com/petergarnaes/cql_parser
CQL parser written in Kotlin
https://github.com/petergarnaes/cql_parser
Last synced: 4 months ago
JSON representation
CQL parser written in Kotlin
- Host: GitHub
- URL: https://github.com/petergarnaes/cql_parser
- Owner: petergarnaes
- Created: 2018-10-05T19:49:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T11:35:09.000Z (about 7 years ago)
- Last Synced: 2025-02-28T23:23:20.134Z (10 months ago)
- Language: Kotlin
- Size: 58.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Monadic parser combinators for kotlin
Special thanks to [Sergey Igushkin](https://github.com/h0tk3y/kotlin-monads) and the team of [Graham Hutton and Erik Meijer](https://eprints.nottingham.ac.uk/223/1/pearl.pdf).
This is an implementation of very basic monadic parser combinators.
## Optimizations
* The `choice` operator could evaluate lazily instead of using the plus operator.
* List concatenation could be better in `many1` and `sepby1`
* Better string/char manipulation
## Features
* `choice` could be an operator, but which to choose?
## TODO
* Make monad implementation dependency on library
* Make code a package, make example separate package
* Write proper tests
* Change repo name on GitHub
* Publish???