使用TinyPG制作脚本语言解释器:可能吗? [英] Using TinyPG to make a script language interpreter: possible?

查看:59
本文介绍了使用TinyPG制作脚本语言解释器:可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello Herre,

我试图了解我是否可以使用您出色的TinyPG编写脚本语言解释器,但是我仍然不确定.特别是,我不了解如何使解析器执行命令.我给您的数学表达式评估示例加了下划线,但仍然看不到我如何执行动作(例如加载文件foobar.pdf")而不是评估数学.你能给我任何例子或指示吗?

TIA
Adriano

解决方案

这个问题不属于这里.您应该将其发布在文章的讨论板上( Tiny Parser Generator v1.2 [ ^ ])


Hello Herre,

I am trying to understand if I could use your excellent TinyPG to make a script language interpreter, but I am still not sure. In particular, I do not undrstand where and how could I make the Parser execute my commands. I understang your math expression evaluation example, but still I do not see exactly how do I perform actions (es. "load file foobar.pdf") instead of evaluating maths. Can you give me any example or directions?

TIA
Adriano

解决方案

This question doesn''t belong here. You should post it on the discussion board of the article (a Tiny Parser Generator v1.2[^])


这篇关于使用TinyPG制作脚本语言解释器:可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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