向 Clojure 项目添加依赖项

发布于 2024-12-10 18:56:11 字数 398 浏览 0 评论 0原文

来自 Clojure noob 的快速 Clojure 问题:

我们需要为我们的项目解析文本文件,并且正在考虑使用 fnparse 来完成工作。

我们需要向 project.clj 添加什么,以便 leiningen 来管理此依赖项?

我们已经尝试将 [name.choi.joshua.fnparse "2.2"] 添加到:dependency,但是 lein deps 却找不到它。

我们担心这个库可能无法使用 leiningen。在这种情况下,还有其他好的 Clojure 解析库吗?

Quick Clojure question from a Clojure noob:

we need to parse text files for our project, and are looking at using fnparse to get the job done.

What do we need to add to project.clj for leiningen to manage this dependency?

We've already tried adding [name.choi.joshua.fnparse "2.2"] to :dependencies, but lein deps then fails to find it.

We're worried that maybe we can't use leiningen for this library. In that case, are there other good parsing libraries out there for Clojure?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

两相知 2024-12-17 18:56:11

我最近发现了 lein search 命令。有时在这样的情况下非常有帮助:

lein search fnparse
 == Results from clojars - Showing page 1 / 4 total
[org.clojars.hiredman/fnparse "2.2.4"] A library for creating functional parsers in Clojure.
[org.clojars.ohpauleez/fnparse "3.0.0alpha4"] A library for creating functional parsers in Clojure.
[fnparse "2.2.7"] A library for creating functional parsers in Clojure.
[fnparse "3.?.4"] A library for creating functional parsers in Clojure.

I recently dicovered the lein search command. is is sometimes incredibly helpful in cases like this:

lein search fnparse
 == Results from clojars - Showing page 1 / 4 total
[org.clojars.hiredman/fnparse "2.2.4"] A library for creating functional parsers in Clojure.
[org.clojars.ohpauleez/fnparse "3.0.0alpha4"] A library for creating functional parsers in Clojure.
[fnparse "2.2.7"] A library for creating functional parsers in Clojure.
[fnparse "3.?.4"] A library for creating functional parsers in Clojure.
生寂 2024-12-17 18:56:11

查看 Clojars,正确的依赖项似乎只是 [fnparse "2.2.7"]

Looking on Clojars, it appears the correct dependency is just [fnparse "2.2.7"].

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文