Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 974 Bytes

Parser combinators.md

File metadata and controls

18 lines (12 loc) · 974 Bytes

categories: Haskell ... When you need to parse something you can juggle bytes and characters with your hands or write some BNF grammars. Or, if you love /FP you can use the parser combinators to grow up any complex parser from a combination of small bits. Especially, this kind of parsing is fun if you are using languages like /Haskell :)

  • parsec, the most famous but a bit old and clumsy library
  • megaparsec, the new "cool kid", fast and fancy
  • attoparsec when you need to process some big chunks of raw bytes

Other resources