With FParsec you can implement recursive‐descent text parsers for formal grammars .

FParsec is an F# adaptation of Parsec, the popular parser combinator library for Haskell by Daan Leijen. While the implementations of Parsec and FParsec are completely different, they share a similar top‐level API.