Liking cljdoc? Tell your friends :D

parsesso

Parser combinators for Clojure(Script).

cljdoc badge Clojars Project

Motivation

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

Inspiration

Cheat sheet

ParsessoParsec1, 2Kern3Parsatron4
resultreturnreturnalways
failfailfailnever
expectinglabel, <?><?>
bind-letdobindlet->>
after>>>>>>, nxt
usingfmap<$>
maybetry<:>attempt
look-aheadlookAheadlook-aheadlookahead
not-followed-bynotFollowedBynot-followed-by
many0manymanymany
many1many1many1many1
skip0skipManyskip-many
skip1skipMany1skip-many1
tokentoken, satisfysatisfytoken
wordtokens, stringtoken*string
tuple<*><*>
choice<|>, choice<|>choice
optionoption, optionaloption, optional
timescounttimestimes

Examples

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