The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Delphi 2009 syntax; not official, but a great start and complement to DelphiAST

Posted by jpluimers on 2018/01/30

A while ago, I found out that [WayBackToon Krijthe made a [Archive.isDelphi 2009 syntax sample which is a great complement to the DelphiAST parser given that Borland/CodeGear/Embarcadero/Idera never published one in the 22+years that Delphi is alive.

–jeroen

6 Responses to “Delphi 2009 syntax; not official, but a great start and complement to DelphiAST”

  1. dennis said

    the antlr delphi grammar looks good as well:

    https://github.com/fabriciocolombo/sonar-delphi/blob/master/src/main/antlr3/org/sonar/plugins/delphi/antlr/Delphi.g

  2. dennis said

    Doesn’t look 100% correct just by looking at one of the first lines:

    Program : [ ProgramHead ] , [ UsesFileClause ] , Block , “,”

    shouldn’t the last one read “.” instead of “,” ?

  3. thaddy said

    There was a Delphi 7 grammar published by Borland/Inprise, but not complete and merely served as documentation.
    In itself it was the basis of more complete – and working – Delphi grammars. You should find it on the Delphi7 disks if you have D7 architect or enterprise still around. (Which I suppose you do..) It is somewhere in the help files.

  4. HeartWare said

    IIRC there was a syntax diagram in one of the manuals (at the time where manuals were delivered with the product). Can’t remember if this was in Delphi’s time, or if it was before Delphi 1.0

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.