gpt4 book ai didi

java - 斯坦福解析器

转载 作者:太空宇宙 更新时间:2023-11-03 19:03:23 24 4
gpt4 key购买 nike

我用 java 类解析字符串(用于 P.O.S 标记);输出是我在 lispworks 中使用此函数加载的 .txt 文件:

 (let ((in (open "C:/a.txt" :if-does-not-exist nil)))
(when in
(loop for line = (read-line in nil)

while line do (format t "~a~%" line))
(close in)
)
)

有没有办法直接在 lisp 代码中使用 java 类?无需单独进行!

最佳答案

也许用Armed Bear Common Lisp (ABCL)

“Armed Bear Common Lisp (ABCL) 是 Common Lisp 语言的完整实现,具有解释器和编译器,在 JVM 中运行。

[…]它可用于使用 Java 到 Lisp 集成 API 来实现(部分)应用程序。”

关于java - 斯坦福解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30362852/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com