Looking for a Complete Delphi (object pascal) syntax

痴心易碎 提交于 2019-12-02 15:50:59

Try this: DGrok - Delphi grammar

There is no complete, published syntax for Delphi. Bear in mind that .net and win32 delphi have different syntaxes.

This project has hand-build Delphi parser in it. And lots of test cases of code that compiles but pushes the limits of the syntax.

Delphi 7's grammar is in the back of the Object Pascal book.

You mean for a few thousand dollars they don't even send you that? Do they even send you a 6' x 6' poster?

This might be a good help. It is the parser used in TwoDesk's Castalia.

What exactly are the bugs and functionality you're missing?

From scanning over your document, it seems you mingle syntax and semantics. I do not understand why to distinguish between SimpleTypeFloat and SimpleTypeOrdinal on a syntactic level, or code operator precedence as syntactic feature in AddOp and MulOp. true, false, nil are identifiers just as any variable name you choose.

You could always read the source to the Free Pascal Compiler. It supports Object Pascal.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!