d2tags - converts DMD2's JSON output to Exuberant Ctags format

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu May 6 09:48:59 PDT 2010


MIURA Masahiro wrote:
> Hi,
> 
> Being happy to see issue 3415 (broken JSON format) fixed,
> I have written a utility to convert DMD2's JSON output
> to Exuberent Ctags format.  This enables you to tagjump in Vim
> and other editors/IDEs.  It's just 150+ lines, thanks to D2's
> powerful string handling.  Enjoy!
> 
> http://github.com/Dubhead/d2tags
> 
> usage:
> % dmd -Xftags.json foo.d
> % d2tags tags.json > tags

Very useful, and a beautiful example of D scripting.

I wonder if this is of enough general utility to warrant inclusion
within the D distribution, along with rdmd. Thoughts?

One small suggestion, Masahiro: you may want to replace the file reading
loop in main() with simply std.file.readText(args[1]).


Andrei


More information about the Digitalmars-d-announce mailing list