[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-devel
Subject:    Re: PHP support
From:       "Niko Sams" <niko.sams () gmail ! com>
Date:       2008-12-28 9:23:03
Message-ID: 629542d40812280123r145bf3c1saf46690ca6b3cc1e () mail ! gmail ! com
[Download RAW message or body]

On Sun, Dec 28, 2008 at 12:39 AM, Hamish Rodda <rodda@kde.org> wrote:
> On Saturday 27 December 2008 06:56:27 Milian Wolff wrote:
>> Am Freitag 26 Dezember 2008 schrieb Niko Sams:
>> > >        ii) provide proper file skeletons for the "create class/file"
>> > > actions iii) provide proper support for the inheritance stuff in the
>> > > "create class" dialog.
>> >
>> > That would be really great. There is some basic code generation stuff for
>> > C++ in KDevelop and a few base classes in KDevPlatform. Harmish Rodda has
>> > done that for C++ and the base classes.
>>
>> Yes, found that already. Lets hope I can understand it and apply it to PHP.
>
> I tried to keep it as generic as possible, if you look/copy the code in
> kdevelop/languages/cpp/codegen and modify it for php (ie. tell it which
> methods are overridable, which to filter out etc) it should be pretty easy.
> The other thing that might need effort is parsing of each inheritance string
> (for c++ eg. "public BaseClass"), and then of course the code to create the
> class itself - for the moment we're using string concatenation but eventually
> I plan to switch to AST generation as an intermediate step.
A big difference to c++ is that in php you can have only one base
class and multiple
interfaces (as in java). Would be nice to reuse this for java and others.

Niko

_______________________________________________
KDevelop-devel mailing list
KDevelop-devel@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic