public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
From: Aurelian Melinte <ame01@gmx.net>
To: sourcenav@sources.redhat.com
Subject: sn architecture
Date: Wed, 01 May 2002 14:05:00 -0000	[thread overview]
Message-ID: <1.1.1.11.2.20020426151258.00aa8690@192.168.60.239> (raw)

hello,

over the past two months I worked on a Java parser for SN, to replace the 
original one. More on that below. During this period I had some suggestions 
from more knowledgeable peoples that I think would be beneficial to SN.

a) It would be good to add to the API libraries functions that will allow 
to query the library from within  a parser. Example: if I have a function call
     somemethod( par1, par2 );
and par1 is of type class P from which classes C1 and C2 are inheriting, 
then par1 can be of type P or C1 or C2. But when I parse Java file by file, 
I have no way to know it unless I query the database. This will improve the 
cross-ref functionality to better display polymorphism.

b) It would be good to turn the code of those libraries into loadable 
modules (.dll, .so, etc). Thus, I can supply my own without having to 
recompile all the parsers. The idea behind is that I will be able to add to 
the current structure of the database transparently, to store more 
information, to support different kinds of queries, etc.  Or, I can use my 
own kind of database just by changing this module.

c) In this case, the tcl/tk code probably would need to me modified to 
query through this module too, and, eventually, group the query 
functionality in one place. It would be easier to modify it - I noticed 
that although I can insert xrefs to classes or to local variables, those 
are not displayed. I have no intimate knowledge with tcl, sorry.



About the replacement Java parser: you can find it at 
http://209.47.210.117:8080/sn.html for now. It detects interface/class 
inheritance, interface/class structure, methods and class variables 
properly. It detects some cross-references too but very limited (I will 
resume work on it in a couple of weeks probably). It is much slower than 
the original :(. It requires JDK/JRE to work.

Regards,
a.

             reply	other threads:[~2002-05-01 21:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-01 14:05 Aurelian Melinte [this message]
2002-05-01 21:02 ` Mo DeJong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1.1.1.11.2.20020426151258.00aa8690@192.168.60.239 \
    --to=ame01@gmx.net \
    --cc=sourcenav@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).