D for Xcode 1.0b1

Michel Fortin michel.fortin at michelf.com
Sun Oct 21 20:40:08 PDT 2007


This is the first beta release of my D plugin for Xcode. This plugin is 
inspired from Alan West's D plugin for Xcode [1], and use the Xcode 
plugin interface documented by Damien Bobillot [2] (Apple doesn't 
publish a plugin developement kit alas!).

 [1]: http://www.alanz.com/d/xcode/
 [2]: http://maxao.free.fr/xcode-plugin-interface/

You can find the plugin here:
<http://michelf.com/projects/d-for-xcode/>

Basically, it does the following:

*   It adds to Xcode the GDC D compiler and the appropriate build rules
    so that D source files are recognised and are as easy to compile as
    C, C++, and Objective-C ones. Once you've added a D source file to a
    project or target, options specific to the D compiler will apear in
    the build settings.

*   It allows Xcode to track dependencies between files (by looking for
    `import` declarations) and automatically recompile files when a
    dependency has been modified.

*   It allows the Xcode debugger to work with D files: setting breakpoints
    and stepping thru the code works as you'd expect it.

*   It provides "perfect" syntax highlighting using the lexer from
    Digital Mars' D front end.

*   It populates the Code Sense editor function popup with functions,
    classes, and some other constructs the D front end parser can find
    in your D source file.

The plugin works on Mac OS X 10.4.10, with Xcode 2.4.1. I have no idea 
how it performs on the very-soon-to-be-released Mac OS X 10.5 Leopard 
(which has Xcode 3). I do not expect it to work unmodified though.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Digitalmars-d-announce mailing list