Liking cljdoc? Tell your friends :D

parsesso

Parser combinators for Clojure(Script).

Clojars Project cljdoc badge

Motivation

  • Idiomatic and convenient API for parser combinators in Clojure and ClojureScript.

Inspiration

Cheat sheet

ParsecParsessoKernParsatron
returnresultreturnalways
failfailfailnever
label, <?>expecting<?>
dobind-letbindlet->>
>>after>>>>, nxt
fmapusing<$>
trymaybe<:>attempt
lookAheadlook-aheadlook-aheadlookahead
notFollowedBynot-followed-bynot-followed-by
manymany0manymany
many1many1many1many1
skipManyskip0skip-many
skipMany1skip1skip-many1
token, satisfytokensatisfytoken
tokens, stringwordtoken*string
<*>each,tuple<*>
<|>, choicechoice<|>either, choice
optionoptionoption
optionaloptionoptional
counttimestimestimes

Performance

See some benchmarks here.

Can you improve this documentation? These fine people already did:
Sergey Trofimov & serioga
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close