Microparsec Save Abandoned

⭐ A performant Nim parsing library built for humans.

Project README
Documentation

Microparsec ⭐

[WIP] Microparsec is a fast parser combinator library with excellent error messages.

import microparsec
let p = between(
  ch('{'),
  str("hello") >> many(space) >> str("world!"),
  ch('}')
)
echo p.parse("{hello\n world?}")
Failed reading: satisfy

1:6:(13):
  |
1 |  world?}
  |       ^
unexpected '?'
expecting "world!"

Microparsec is a pure Nim adaptation of Parsec, the popular monadic parser combinator library for Haskell by Daan Leijen, Further inspiration was taken from Attoparsec and Megaparsec.

Installation

Microparsec supports Nim 1.2.6+ and can be installed using Nimble:

$ nimble install microparsec

Some references

Inspiring projects

Open Source Agenda is not affiliated with "Microparsec" Project. README Source: schneiderfelipe/microparsec
Stars
35
Open Issues
32
Last Commit
2 years ago
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating