View Source Cogito (Cogito v0.6.0)

A module that build parsers and parses a string. Known parsers:

  • json
  • mathematical expressions
  • nginx logs [WIP]

But you can easily build your own.

Summary

Functions

json_parser()

json_parser!()

maths_parser(vars \\ %{})

maths_parser!(vars \\ %{})

parse(parser, input)