Cogito.Combinators (Cogito v0.4.1)

A list of basic combinators.

Combinators

  • identity
  • char
  • map
  • concat
  • either
  • star
  • plus
  • seq
  • fseq
  • nth
  • repeat
  • choice
  • optional
  • join
  • ignore
  • eos
  • lazy

Summary

Functions

char(predicate)

choice(parsers)

concat(parser, parser2, function)

either(parser, parser2)

eos(parser)

eos!(parser)

fseq(parsers, function)

identity(value)

ignore(parser)

join(parser)

lazy(parser)

(macro)

map(parser, function)

nth(parsers, n)

optional(parser)

plus(parser)

repeat(parser, n)

seq(parsers)

star(parser)