parsimmon

A monadic LL(infinity) parser combinator library for javascript

  • Owner: capnproto/capnproto
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart




Parsimmon

Authors: @jneen and @laughinghan

Maintainer: @wavebeem

Parsimmon is a small library for writing big parsers made up of lots of little parsers. The API is inspired by parsec and Promises/A+.

Parsimmon supports IE7 and newer browsers, along with Node.js. It can be used as a standard Node module through npm (named parsimmon), or directly in the browser through a script tag, where it exports a global variable called Parsimmon. To download the latest browser build, use the unpkg version. For more information on how to use unpkg, see the unpkg homepage.

Code of Conduct

Everyone is expected to abide by the Contributor Covenant. Please send reports to brian@mockbrian.com.

API Documentation

Examples

See the examples directory for annotated examples of parsing JSON, Lisp, a Python-ish language, and math.

Common Functions

Questions

Feel free to ask a question by filing a GitHub Issue. I'm happy to help point you in the right direction with the library, and hopefully improve the documentation so less people get confused in the future.

Contributing

Contributions are not just pull requests.

Issues clearly describing bugs or confusing parts of Parsimmon are welcome! Also, documentation enhancements and examples are very desirable.

Feeling overwhelmed about contributing? Open an issue about what you want to contribute and I'm happy to help you through to completion!

Performance

Thanks to @bd82 we have a good benchmark comparing Parsimmon CPU performance to several other parser libraries with a simple JSON parser example.

Fantasyland

Parsimmon is also compatible with fantasyland. It implements Semigroup, Apply, Applicative, Functor, Chain, and Monad.

Main metrics

Overview
Name With Ownercapnproto/capnproto
Primary LanguageC++
Program languageJavaScript (Language Count: 10)
Platform
License:Other
所有者活动
Created At2013-03-29 02:38:48
Pushed At2025-06-11 17:35:38
Last Commit At2025-06-05 10:56:14
Release Count35
Last Release Namev1.1.0 (Posted on )
First Release Namev0.1.0 (Posted on )
用户参与
Stargazers Count12.2k
Watchers Count319
Fork Count1k
Commits Count4.9k
Has Issues Enabled
Issues Count730
Issue Open Count188
Pull Requests Count1230
Pull Requests Open Count76
Pull Requests Close Count175
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private