parsimmon

A monadic LL(infinity) parser combinator library for javascript

  • 所有者: capnproto/capnproto
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图




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.

主要指标

概览
名称与所有者capnproto/capnproto
主编程语言C++
编程语言JavaScript (语言数: 10)
平台
许可证Other
所有者活动
创建于2013-03-29 02:38:48
推送于2025-06-11 17:35:38
最后一次提交2025-06-05 10:56:14
发布数35
最新版本名称v1.1.0 (发布于 )
第一版名称v0.1.0 (发布于 )
用户参与
星数12.2k
关注者数319
派生数1k
提交数4.9k
已启用问题?
问题数730
打开的问题数188
拉请求数1230
打开的拉请求数76
关闭的拉请求数175
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?