使用 ANTLR 的动态类型语言示例
我正在寻找一些 ANTLR v3 示例,我尝试用谷歌搜索一下,但发现某些内容不符合我的要求。我找到了 Mantra 项目,但它是静态类型的,目前对我来说“太大”了,然后我找到了“pie”作为解释器,它是动态类型的,这正是我想要的,但它使用语法导向的解释器。
我正在寻找一种非常小的语言,它是动态类型的,并且如果可能的话使用 AST。不需要太高级,如果有课程我就很开心了。
我并不真正关心目标语言,因为我已经熟悉了 ANTLR v3 的大多数目标语言,并且代码并不难读。
谢谢,
威廉·范·多恩
I'm looking for some ANTLR v3 examples, I tried googling a bit but I found certain things which didn't fit my requirments. I found the Mantra project, but it's statically typed and is 'too' big for me at this moment, then I found 'pie' as interpreter, which is dynamically typed, which what I want, but it uses a syntax-directed interpreter.
I'm looking for a pretty small language which is dynamically typed and uses AST's if possible. It doesn't need to be advanced, if it would have classes I would already be very happy.
I don't really care about the target language, as I already have experience with most of the target languages of ANTLR v3, and code isn't that hard to read much.
Thanks,
William van Doorn
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Physicalc 听起来可能就是您想要的。
编辑 - 根据评论:
这里是我正在开发的玩具语言。
Physicalc sounds like it may be what you're after.
EDIT - as per comments:
Here is my work-in-progress toy language.