Monadic parsers library with inheritance support