is there a GUI for Perl to display large tree structures ?

I am looking for a way to display large tree structure - 60-70,000
nodes
resulting from parsing source code for an OO language. I tried Tk
widget
in the best but it would choke. I know it can be done in VB but I was
curious
if there are any GUI toolkits in Perl capable of doing it.
At the beginning I would like the tree nodes to be all collapsed and I
would
like to be able to do regexp searh for a node that would result in
expansion
of intermediate nodes. Essentially I need a source code browser for
a proprietary (Java like) language.

Advertisements

Guest

Woland99 <> wrote:
> I am looking for a way to display large tree structure - 60-70,000
> nodes
> resulting from parsing source code for an OO language. I tried Tk
> widget
> in the best but it would choke. I know it can be done in VB but I was
> curious
> if there are any GUI toolkits in Perl capable of doing it.
> At the beginning I would like the tree nodes to be all collapsed and I
> would
> like to be able to do regexp searh for a node that would result in
> expansion
> of intermediate nodes.

I don't know of any. It doesn't seem like the kind of thing I'd expect
Perl to be a likely candidate for. For first effort would be to translate
the data to XML and then try using various XML viewing tools to see of one
does what you want. I'll the ones I've seen did branch collapsing, but
I don't know of any do searching by regex, but I've never looked.

Xho

--
-------------------- http://NewsReader.Com/ --------------------
The costs of publication of this article were defrayed in part by the
payment of page charges. This article must therefore be hereby marked
advertisement in accordance with 18 U.S.C. Section 1734 solely to indicate
this fact.

Advertisements

On Sun, 31 Aug 2008 16:41:34 -0700 (PDT), Woland99 <>
wrote:
>I am looking for a way to display large tree structure - 60-70,000
>nodes
>resulting from parsing source code for an OO language. I tried Tk
>widget
>in the best but it would choke. I know it can be done in VB but I was
>curious
>if there are any GUI toolkits in Perl capable of doing it.
>At the beginning I would like the tree nodes to be all collapsed and I
>would
>like to be able to do regexp searh for a node that would result in
>expansion
>of intermediate nodes. Essentially I need a source code browser for
>a proprietary (Java like) language.
>
>TIA for any pointers/info/references,
>
>JT

Gtk2 will probably handle it better than Tk. Try this, pulled from some
maillist. The Perl code can be converted to c for more speed.
Or google for "Gtk2 xmlviewer" for other Perl viewers.

#!/usr/bin/perl
use strict;
use warnings;
use constant TRUE => 1;
use constant FALSE => !TRUE;
use Gtk2 -init;
use XML::Simple;

On Aug 31, 7:41 pm, Woland99 <> wrote:
> I am looking for a way to display large tree structure - 60-70,000
> nodes
> resulting from parsing source code for an OO language. I tried Tk
> widget
> in the best but it would choke. I know it can be done in VB but I was
> curious
> if there are any GUI toolkits in Perl capable of doing it.
> At the beginning I would like the tree nodes to be all collapsed and I
> would
> like to be able to do regexp searh for a node that would result in
> expansion
> of intermediate nodes. Essentially I need a source code browser for
> a proprietary (Java like) language.
>
> TIA for any pointers/info/references,
>
> JT

Share This Page

Welcome to The Coding Forums!

Welcome to the Coding Forums, the place to chat about anything related to programming and coding languages.

Please join our friendly community by clicking the button below - it only takes a few seconds and is totally free. You'll be able to ask questions about coding or chat with the community and help others.
Sign up now!