Writing a parser from scratch in Haskell

前端 未结 2 692
一向
一向 2021-01-29 23:22

Is there any good tutorial for writing a parser for a given grammar in Haskell from scratch?

I found:

  1. parsing expressions and statements (HaskellWiki)

2条回答
  •  -上瘾入骨i
    2021-01-29 23:56

    I really liked Graham Hutton's "Programming in Haskell". It gives a gentle introduction to monads and parser combinators. The eighth chapter builds a basic parser library.

    Here is the link to Programming in Haskell book site. You will also find link to the parser library and basic expression parser.

    Further, if you are interested, you can also look at uu-parsinglib applicative style parser combinators developed at Utrecht University.

提交回复
热议问题