Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
scripting.dev.java.net 项目怎么样,它包含许多脚本引擎(及其来源) )。
What about the scripting.dev.java.net project, it includes many Script Engines (and their sources).
没有比阅读规范更好的起点了(对于脚本引擎实现者有一个单独的规范文档):JSR 223
No better place to start than reading the spec (there's a separate spec document for script engine implementers): JSR 223
抱歉,这并不是一个直接的答案:但不要尝试使用 javax.script 包,而是尝试首先实现您的语言。 Javacc 或 ANTLR 是一个好的开始。
Sorry, not really a direct answer: but rather than trying to use the javax.script package, try to implement first your language. Javacc or ANTLR are a good start.
查看 Java 脚本程序员指南< /a>.
Have a look at the Java Scripting Programmer's Guide.