In this post we will see how to parse a Git log using F# and FParsec.
FParsec is a parser combinator library for F#. The library provides many simple parser functions that can be combined to create quite complex and powerful parsers.
For an introduction on how this works please refer to Functional Monadic Parsers ported to C# which explains some basic concepts and shows how a parser combinator library is built from scratch. Another good starting point is the FParsec tutorial or this post by Mathias Brandewinder.
In this post, however, we will focus on the usage rather than on how it works.
Complete Gist for this post.