Ruby:寻找可嵌入红宝石的解释器或脚本语言 [英] Ruby: looking for ruby-embeddable interpreter or scripting language

查看:81
本文介绍了Ruby:寻找可嵌入红宝石的解释器或脚本语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

针对上一个问题@Pablo Fernandez 建议我使用树形嵌入到我的RoR应用程序中。

In response to a previous question, @Pablo Fernandez suggested I implement a simple interpreter using Treetop to embed in my RoR application. It looks like a good approach.

但是我不禁要问:没有人写过玩具解释器嵌入Ruby应用程序吗?我不需要任何I / O功能-实际上,我特别不需要 任何I / O功能。 (如果您想知道为什么要在Ruby中使用解释器,请参阅原始帖子!)

But I can't help but wonder: hasn't anyone written a toy interpreter to embed in a Ruby app? I don't need any I/O functions -- in fact, I specifically don't want any I/O functions. (If you're wondering why I want an interpreter inside of Ruby, please refer to the original post!)

谢谢。

推荐答案

FWIW,我最终调整了粘贴用作嵌入式解释器。这个过程既快速又容易,可以很好地满足我的需求。 (此外,我曾经在Common Lisp公司工作,所以这是重新体验s表达式乐趣的借口。)

FWIW, I ended up tweaking a version of stickup to use as a embeddable interpreter. The process was fast and easy and serves my needs well. (And besides, I used to work for a Common Lisp company, so it was an excuse to re-live the joys of s-expressions.)

这篇关于Ruby:寻找可嵌入红宝石的解释器或脚本语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆