Joe White’s Blog

Life, .NET, and Cats


DGrok 0.2 released

DGrok 0.2 is now available.

It can now parse 13 of the Delphi RTL source files (only 78 more to go). It should be able to parse interface sections in full, with the exception of class (and record) helpers and records with variant sections.

I also made some improvements to the demo app. The biggest change, apart from fixing the hard-coded path, is that you can double-click a filename in the treeview. This brings up that file in a new window — and if there was an error parsing the file, the cursor is positioned at the error location. (But no, there’s no GUI yet for specifying IFDEFs.)

Next stop: Statements.

2 Responses to “DGrok 0.2 released”

  1. Morgan Says:

    This looks like a cool project. It is a little odd to see a Delphi parser written in C#, but maybe using a CodeDom or Reflector one could roughly "translate" it into Delphi code anyway. Any plans to support generics, nested types, etc?

  2. Joe White Says:

    Delphi doesn’t have anonymous methods, so you’d have an interesting time trying to translate this code. But you’re welcome to give it a shot.

    Nested types should already be working, along with var, class var, and const sections inside of classes. (There’s a bug with the const sections at the moment, but they’re mostly working.)

    Generics are a different story. They’re not in my immediate plans, for a number of reasons, including them being hard to parse and me having no use for them, since all of our Delphi code is Win32.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Joe White's Blog copyright © 2004-2008. Portions of the site layout use Yahoo! YUI Reset, Fonts, and Grids.
Proudly powered by WordPress. Entries (RSS) and Comments (RSS).