Choosing a Haskell parser

前端 未结 4 397
一生所求
一生所求 2021-01-30 07:25

There are many open sourced parser implementations available to us in Haskell. Parsec seems to be the standard for text parsing and attoparsec seems to be a popular choice for b

4条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-30 07:48

    Just to add to Don's post: Personally, I quite like Text.ParserCombinators.ReadP (part of base) for no-nonsense quick and easy stuff. Particularly when Parsec seems like overkill.

    There is a bytestringreadp library for the bytestring version, but it doesn't cover Char8 bytestrings, and I suspect attoparsec would be a better choice at this point.

提交回复
热议问题