Joe White’s Blog

Life, .NET, and Cats


Delphi parser: Half done

My Delphi parser is now half done! (Well, okay, halfway towards being able to parse Delphi 6 grammar. Still, it’s a big milestone.)

A few current statistics:

  • Rules completed: 63 out of 125
  • Number of unit tests: 330
  • Last time I fixed a serious error in the Borland-provided grammar definition: 1 hour ago
  • Last rule added: ProcedureType
  • Next likely targets: MethodHeading, PropertyParameterList, PropertySpecifiers
  • Next Really Big Thing that needs to be cleaned up in the grammar: ClassType, which has the visibility stuff completely wrong
  • Latest interesting fix to the official grammar: procedural types (type TFoo = procedure of object;) were in the grammar, but wouldn’t work because they expected a procedure name (e.g., the official grammar would only parse it if it was type TFoo = procedure Foo of object;, which is not in fact something that the compiler will accept)

There are no responses to “Delphi parser: Half done” yet.

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