Reputation: 595
I am aware of edn/read-string
In Haskell, I tend to use Parsec https://hackage.haskell.org/package/parsec
I need to parse an Algo/Pascal like programming language. What are the suggested libraries to use for parsing in Clojure?
EDIT: 4. Bonus if there's a way to do this via a core.logic like manner, where a "prioritized" conde would specify the options (and the order to resolve ambiguity).
Upvotes: 0
Views: 1974
Reputation: 8096
You should really look at Instaparse. It is one of the best front end parsing libraries I've ever used. It is a lively project with steady advancements.
Upvotes: 7