Language support ?

Niko Sams niko.sams at gmail.com
Sat Apr 10 06:15:46 UTC 2010


On Fri, Apr 9, 2010 at 23:06, Andreas Pakulat <apaku at gmx.de> wrote:
> On 07.04.10 19:52:41, thienhaflash wrote:
>> Hi,
>>
>> Is there any easy way to develop a new language support for KDevelop ?
>> I'd like to add support for Haxe + Actionscript 3 but don't know
>> where to start, can you help me ?
>
> First of all you'll need to write a parser, second you'll need to look
> into duchain and generate the declarations/uses for your code. Once
> api.kde.org is back you can look into extragear/sdk and go to the
> kdevplatform/language library.
>
> And just to make this clear: This is the only way and its not exactly
> easy, you'll have to spend some time learning the framework and looking
> at other language plugins to fully understand how things work (there's
> php, css and some preliminary support for xml in playground).
>
Or you implement "limited" language support, as the ruby plugin does.
It has much features missing but it still has:
- quickopen class
- quickopen method
- outline
- context navigaion
The ruby "parser" is even written using regular expessions.

The best option imho is to do it step by step.

Niko




More information about the KDevelop-devel mailing list