使用自适应语法 [英] Using adaptive grammars

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

问题描述

我试图实现一种语言可以动态改变的语言(或一系列语言)。我没有发现任何作为研究案例的例子。

I'm trying to implement a language (or family of languages) whose grammar can be changed dynamically. I have found no examples that serve as study cases.

你能给我一些参考在现实世界中实际使用的(甚至从学术界)吗?

Can you give me some reference to any that are actually used in the real world (even from the academic world)?

使用动态语法实现特定领域的语言有意义吗?

Does it make sense to implement a Domain-Specific Languages with a dynamic grammar?

推荐答案

具有动态语法的最有名的当前语言是 Perl6 。一般来说,最有名的例子是 Smalltalk-72

The most famous current language that has a dynamic syntax is Perl6. The most famous example in general is probably Smalltalk-72.

您还可以查看 OMeta 以及来自 Alan Kay的观点研究所的STS项目,以及Val Schorre的原始 META II

You might also want to look into OMeta and the rest of the STEPS project from Alan Kay's Viewpoints Research Institute, as well as Val Schorre's original META II.

还有趣的是:π编程语言

XL(可扩展语言)还允许用于强大地操纵语法本身。

XL (Extensible Language) also allows for powerful manipulation of the syntax itself.

这篇关于使用自适应语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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