eav db
eav db

Reputation: 595

Parsing in Clojure

  1. I am aware of edn/read-string

  2. In Haskell, I tend to use Parsec https://hackage.haskell.org/package/parsec

  3. 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

Answers (1)

Frank C.
Frank C.

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

Related Questions