Full parser examples with parsec?

后端 未结 3 1872
逝去的感伤
逝去的感伤 2021-01-30 23:15

I\'m trying to make a parser for a simple functional language, a bit like Caml, but I seem to be stuck with the simplest things.

So I\'d like to know if there are some m

3条回答
  •  死守一世寂寞
    2021-01-30 23:19

    I wrote up a series of examples on how to parse Roman Numerals with parsec. It's pretty basic but you or other newcomers may find it useful:

    https://github.com/russell91/roman

提交回复
热议问题