用于以与语言无关的方式描述“C-API”类型的元语言。
是否有一种元语言来描述类型(结构/记录、函数类型及其参数...)和常量,可以将其提供给工具,或者我可以编写代码来为多种目标语言创建原型?注意:(E)BNF 与我正在寻找的东西并不接近。
IDL 看起来更接近我所需要的,但我所研究的那些风格甚至没有涵盖非面向对象的系统。 Microsoft 的 M 似乎与 .NET 紧密相关,而我需要它的系统确实是人们通常所说的“C-API”。没有花哨的接口定义或任何远程面向对象的东西。
Is there a meta-language to describe types (structures/records, function types and their parameters ...) and constants that can be fed to a tool or that I can then write code for to create prototypes for multiple target languages? Note: (E)BNF is not even close to what I am looking for.
IDL looks closer to what I need, but those flavors I looked at didn't even cover systems that were not also object-oriented. Microsoft's M seems to be tied to .NET and the system I need it for is truly what one would usually describe as a "C-API". No fancy interface definitions or anything remotely object-oriented.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
OMG IDL 提供了描述 IDL 构造到许多知名语言(包括 C 语言)的映射的文档:
http ://www.omg.org/technology/documents/idl2x_spec_catalog.htm
OMG IDL provide documents describing the mapping of IDL constructs to a number of well known languages including C:
http://www.omg.org/technology/documents/idl2x_spec_catalog.htm