I wrote Delphi generator, lirbrary and unit test.

It works with Delphi XE.