Looking for a Complete Delphi (object pascal) syntax

Toon Krijthe picture Toon Krijthe · Oct 5, 2008 · Viewed 10k times · Source

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.).

Answer

DiGi picture DiGi · Oct 5, 2008

Try this: DGrok - Delphi grammar