Cogito (Cogito v0.5.1)

A module that build parsers and parses a string.

Known parsers

  • json
  • mathematical expressions
  • nginx logs (WIP)

But you can easily build your own. An example of creation on GitHub.

Summary

Functions

json_parser()

json_parser!()

mathematical()

mathematical!()

parse(parser, input)