寻找一个完整的Delphi(对象pascal)语法 [英] Looking for a Complete Delphi (object pascal) syntax

查看:159
本文介绍了寻找一个完整的Delphi(对象pascal)语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个完整的Object Pascal语法(最好是Delphi 2009)。一些语法由帮助文件给出,但不是提供所有信息。所以我开始收集松散的信息。最近我添加了这些或多或少完整的语法描述(EBNF like)。



尽管它看起来很广泛,但仍然存在错误,我确定缺少部分(特别是在.NET语法中)。所以我问SO德尔福社区。您有任何信息,还是可以纠正错误?作为回报,我向社区提供了完整的语法。它可能会节省你一些时间;-)。
将来,我喜欢为其他语言(像C#/ C ++ / Java)这样做。



我已经给出了语法描述: 我的语法sofar 。或者如果您喜欢文字版本。 (XHTML是从文本版本生成的)。



请注意,语法集中在语法部分,因为词法部分并不是一个问题。 >

更新



我有一个新版本的Delphi语法。 html版本。它包括2009版本的版本。棱镜的扩展仍然在待办事项列表中。我不知道我是否要把它们放在一起。



对于真正的纯粹主义者,它还包含完整的汇编代码(不支持完整的100%的英特尔集,但只有少数说明错过。)

解决方案

尝试这样: DGrok - Delphi语法


I need a complete Object Pascal syntax (preferably Delphi 2009). Some of the syntax is given by the help files, but not all information is provided. So I started collecting loose bits of information. Recently I added these to a more or less complete syntax description (EBNF like).

Although it looks extensive, there are still bugs and I'm sure parts are missing (specially in the .NET syntax). So I'm asking the SO Delphi community. Do you have any information or can you correct the errors? In return I provide the complete syntax to the community. It probably saves you some time ;-). In the future, I like to do the same for other languages (Like C#/C++/Java).

The syntax description I already have is given: My Syntax sofar. Or if you like a Text version. (The XHTML is generated from the text version).

Please note that the syntax focusses on the syntactical part, because the lexical part is not really a problem.

Update

I have a new version of the Delphi Syntax. html version. It includes al versions including 2009. Prism extentions are still on the todo list. And I'm not sure if I'm going to keep them together.

For the real purists, it also contains the full assembler code (which does not support the full 100% of the intel set but only a few instructions are missed.).

解决方案

Try this: DGrok - Delphi grammar

这篇关于寻找一个完整的Delphi(对象pascal)语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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