Haskell - recursive descent analyzer

Can anyone recommend a simple working example (code) of using a recursive descent parser on haskell? All the information I found is too hard to understand. thanks!

+6
source share
2 answers

In the Parsec chapter of Real World Haskell , the recursive parser analyzer library that ships with the Haskell platform, There is also a bunch of Parsec links to the Haskell Wiki . Ultimately, once you take the examples, you'll need a reference guide .

+5
source

While not particularly simple, the Robert Gigerich script for his lecture "Programmiersprachen und ihre Übersetzer" is a competent program with a recursive descent parser for (IIRC) minimal Pascal with excellent documentation. In German, although not available online, you can ask it directly .

+1
source

Source: https://habr.com/ru/post/899466/


All Articles