有许多在 JVM 上运行的 Scheme 实现(例如 JScheme、Kawa)。
它们中的任何一个都支持以下两者吗: a) 与 Java 的双向互操作性。 b) 访问Scheme 表达式的AST?
最佳答案
Kawa 具有双向互操作性。
来自Kawa Features :
Full convenient and efficient access to the huge set of Java libraries means you can access objects, methods, fields, and classes without run-time overhead.
来自"Evaluating Scheme expressions from Java"
The following methods are recommended if you need to evaluate a Scheme expression from a Java method.
这里描述了 Java 中如何表示 Scheme 类型:
有关更多信息,请尝试向 Kawa 邮件列表发送邮件。
关于java - JVM方案抽象语法树访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32676821/