Back to KDevelop Hacking

June 3, 2008 at 12:28 am | Posted in KDevelop | 5 Comments

Its been quite some time since I’ve been really active, this was mostly due to “real life” kicking in. That means moving to a new appartment, getting to know a new city, working a bit longer than usual and not feeling like hacking in the late evening.

So the last 3 hours I spent debugging a crash in kdevelop4, fixing kdebugdialogs scrolling bug (or rather working around it by using QTreeWidget instead of QListWidget), creating a example app for the trolls for the QListWidget bug and last but not least extending the KDevelop PG-Qt parser generator to allow to customize the auto-generated Ast nodes a bit.

Sorry Aleix, no time for fixing the building inside KDevelop4, but thats on the table for wednesday (as I doubt I’m able to hack tomorrow, real life you know😉

5 Comments

  1. 🙂 I can wait, I can’t code because of exams afterall.😦

    Take care Andreas!

  2. > extending the KDevelop PG-Qt parser generator
    > to allow to customize the auto-generated Ast
    > nodes a bit.
    this sound great. Do you have an usage example for this?

    And do you plan to avoid that second hand-crafted ast by customizing the auto-generated one?

    The hand-crated ast is so much code to write – and has to be adapted for every grammar change.

    niko

  3. @Niko:

    %ast_extra_members
    [:

    :]

    The java parser in kdevelop4-extra-plugins has this example.

    Regarding hand-crafted AST: Thats something I do for Python and QMake because I find the auto-generated one hard to work with, however this doesn’t mean you have to do the same. Hamish is using the auto-generated one for java and doesn’t seem to have a problem with it so far.

    Besides I only created the hand-written AST’s after the grammar was “finished”.

  4. Hmm, damn forgot this is html after all. Here’s the complete example

    %ast_extra_members
    [:
    < C++ code, like class DUContext* ducontext >
    :]

  5. nice post, Thank for this reference


Sorry, the comment form is closed at this time.

Create a free website or blog at WordPress.com.
Entries and comments feeds.

%d bloggers like this: