Re: Adding another language to the fray

Bram Moolenaar <[email protected]>
Newsgroups gmane.comp.tools.aap.devel
Message-ID <[email protected]>
Lars Ivar Igesund wrote:

> I would like to add native support for the D programming language
> to A-A-P. Since it in most ways is quite similar to C/C++, I think
> this should be rather easy.

Right, it should be.

> What I have done is this:
> 
> Added ("d", "d") to the Filetype list.
> Added a default route to default.aap
> Added dmd.py to the tools dir
> Added a compile action with accompanying rule to default.aap
> (the content of the action is almost identical to the c one and
> starts like this:
> :action compile object,default d
> )
> 
> Anyway, something is wrong or lacking somewhere, as aap decides
> to crash on my action with the message:
> action must have two or three arguments
> 
> which I mean that it has.

I tried to reproduce this problem with a simple recipe:

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
:filetype
	suffix d d

:action compile object,default d
	:print I'm compiling

all:
	:print nothing
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I don't get an error message.

What version of Aap are you using?


BTW: Please avoid sending HTML when the message only contains plain
text.

-- 
Why doesn't Tarzan have a beard?

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///          Creator of Vim - Vi IMproved -- http://www.Vim.org          \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html  ///


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.