用纯python实现的编程语言 [英] programming language implemented in pure python

查看:94
本文介绍了用纯python实现的编程语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建(高度研究)高度可定制的python客户端,并希望允许用户实际使用另一种语言编辑代码以自定义程序的运行. (类似于本身使用c/c ++编码并运行另一种语言html/js的浏览器).所以我的问题是,是否有任何以纯python实现的编程语言可以作为参考(或直接使用?)-我需要简单的语言(简单的语句和ifs可以做到)

edit:对不起,如果我没有清楚自己的意思,但是我想要的是一种用于自定义程序运行的语言",即使pypi似乎是一个不错的选择,但我正在寻找的东西更简单,我可以学习并如果需要,请扩展自己.我的Google搜索指向基于xml的语言. (BMEL,XForms等).

解决方案

诸如Cheetah,Django模板,Genshi,Mako,Mighty之类的众多模板语言可以作为示例.

i am creating ( researching possibility of ) a highly customizable python client and would like to allow users to actually edit the code in another language to customize the running of program. ( analogous to browser which itself coded in c/c++ and run another language html/js ). so my question is , is there any programming language implemented in pure python which i can see as a reference ( or use directly ? ) -- i need simple language ( simple statements and ifs can do )

edit: sorry if i did not make myself clear but what i want is "a language to customize the running of program" , even though pypi seems a great option, what i am looking for is more simple which i can study and extend myself if need arise. my google searches pointing towards xml based langagues. ( BMEL , XForms etc ).

解决方案

Numerous template languages such as Cheetah, Django templates, Genshi, Mako, Mighty might serve as an example.

这篇关于用纯python实现的编程语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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