Jonathan Joelson writes:
> I was thinking I'd take a stab at adding support for the D programming
> language to cedet. I haven't been able to contact the original creator
> of d-mode.el (William Baxter) so I thought I'd check in here to see if
> anyone has begun doing this already.
I don't know of anyone working on this.
> Apart from that, any tips on implementing support for a new language
> would be greatly appreciated. I've seen
> http://cedet.sourceforge.net/addlang.shtml and I've been looking at
> the code for other languages which are already supported. Anything
> else I should know before starting?
A few things to note:
- CEDET is merged with Emacs, so the question is whether you'd be
willing to grant copyright to the FSF and sign papers. Otherwise, all
your work would have to land in the 'contrib' directory. Likewise, it
would be best if d-mode.el could also be contributed to Emacs, so that
support for D will work out of the box. If you plan on changing the
existing d-mode.el, this would also require papers from all people
who contributed significant changes to the code (>15 lines).
- For CEDET to work well, it is important that d-mode.el has proper
syntax tables. As far as I can see it mostly derives its stuff from
cc-mode, hence I don't think this will be much of a problem.
- Things will become much easier if there's a free grammar for D out
there, meaning that the license under which this grammar is
distributed is compatible with the GPL. A first step would then be to
port that Grammar to Wisent or Bovine, which are ports of Bison in
Emacs Lisp. Otherwise, you would have to start a grammar from scratch,
or maybe - if it makes sense - start with the existing grammar for
C++ and adapt it for D.