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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?