public inbox for sourcenav@sourceware.org
 help / color / mirror / Atom feed
* Source Navigator 5.0 and [incr TCL]
@ 2001-06-06 17:16 Rodger Hughes
  2001-06-06 17:33 ` Ian Roxborough
  2001-06-06 17:50 ` Mo DeJong
  0 siblings, 2 replies; 3+ messages in thread
From: Rodger Hughes @ 2001-06-06 17:16 UTC (permalink / raw)
  To: sourcenav

[-- Attachment #1: Type: text/plain, Size: 745 bytes --]

Hello Source-Navigator Team.

I've just started playing with SN 5.0 and I can not get it to recognize
classes, methods etc... in my ITCL source.  I've even tried a very
simple
itcl source (see below.)  I'm running under Window NT 4.0 SP6.

I also tried SN 4.5.2 and get the same results.  It ignores the classes,
treats
the methods as functions.  The only "classes" I can get it to recognize
are
tcl namespaces.

Also, if  add an inherit foo line to the Timer class I get an error when
the code
parses.

From what I've seen, SN looks really useful.

Second Question:  whats the proper way to install 5.0 on windows?  The
binaries (.zip file) doesn't have an installer like 4.5.2 does and there
aren't
any instructions.

Thanks
Rodger Hughes.




[-- Attachment #2: tmp.proj --]
[-- Type: application/octet-stream, Size: 16384 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Source Navigator 5.0 and [incr TCL]
  2001-06-06 17:16 Source Navigator 5.0 and [incr TCL] Rodger Hughes
@ 2001-06-06 17:33 ` Ian Roxborough
  2001-06-06 17:50 ` Mo DeJong
  1 sibling, 0 replies; 3+ messages in thread
From: Ian Roxborough @ 2001-06-06 17:33 UTC (permalink / raw)
  To: Rodger Hughes; +Cc: sourcenav

Yeah, this is a big downer, we only work with Itcl 1.0/2.0 and
not the 3.0 syntax (Yes, this does mean that we can't parser a
big chunk of Source-Navigator).

The required solution is either fix the current Itcl parser
to work with Itcl 3.0 or write a new one (or adapt an existing one).

When will this be done? Well, I was hoping to have an Itcl 3.0
parser by now, I started writing a new parser Tcl/Itcl in PCCTS,
but I've not done anything on it for a while.

Ian.


Rodger Hughes wrote:
> 
> Hello Source-Navigator Team.
> 
> I've just started playing with SN 5.0 and I can not get it to recognize
> classes, methods etc... in my ITCL source.  I've even tried a very
> simple
> itcl source (see below.)  I'm running under Window NT 4.0 SP6.
> 
> I also tried SN 4.5.2 and get the same results.  It ignores the classes,
> treats
> the methods as functions.  The only "classes" I can get it to recognize
> are
> tcl namespaces.
> 
> Also, if  add an inherit foo line to the Timer class I get an error when
> the code
> parses.
> 
> >From what I've seen, SN looks really useful.
> 
> Second Question:  whats the proper way to install 5.0 on windows?  The
> binaries (.zip file) doesn't have an installer like 4.5.2 does and there
> aren't
> any instructions.
> 
> Thanks
> Rodger Hughes.
> 
>   --------------------------------------------------------------------------------
>                Name: tmp.proj
>    tmp.proj    Type: unspecified type (application/octet-stream)
>            Encoding: base64
> 
>   --------------------------------------------------------------------------------
> 
> package require Itcl
> 
> ::itcl::class foo {
>   private variable f_up
>   private varible f_act
> 
>   public method fup {} {
>     puts $up
>   }
>   public method fact {} {
>     puts $act
>   }
>   constructor {up act} {
>     set f_up $up
>     set f_act $act
>   }
> }
> ::itcl::class Timer {
>   #inherit foo
>   private variable t_up
>   private varible t_act
> 
>   public method up {} {
>     puts $up
>   }
>   public method act {} {
>     puts $act
>   }
>   constructor {up act} {
>     set t_up $up
>     set t_act $act
>   }
> }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Source Navigator 5.0 and [incr TCL]
  2001-06-06 17:16 Source Navigator 5.0 and [incr TCL] Rodger Hughes
  2001-06-06 17:33 ` Ian Roxborough
@ 2001-06-06 17:50 ` Mo DeJong
  1 sibling, 0 replies; 3+ messages in thread
From: Mo DeJong @ 2001-06-06 17:50 UTC (permalink / raw)
  To: sourcenav

On Wed, 6 Jun 2001, Rodger Hughes wrote:

> >From what I've seen, SN looks really useful.

It is, but the parsers need work.

> Second Question:  whats the proper way to install 5.0 on windows?  The
> binaries (.zip file) doesn't have an installer like 4.5.2 does and there
> aren't any instructions.

Yeah, that is something I want to fix in the next release.

Appended are the readme files I am planning on putting in the
next release. Would they have helped?

Mo DeJong
Red Hat Inc

% cat README
This is Source-Navigator and IDE for C/C++/Java/Tcl/Fortran and a host
of other languages. Source-Navigator includes powerful source code
comprehension features that help a developer understand complex
relationships between elements of a program's source.

Source-Navigator is released under the terms of the GPL; see the 
COPYING file for more information about the GPL.

The Source-Navigator project is hosted at sources.redhat.com:

http://sources.redhat.com/sourcenav/

A public mailing list is available for help or general questions.
Go to the project website to find out how to join the mailing list.

One can find Source-Navigator documentation in the snavigator/doc/html
directory. Documentation is available in HTML format only.

Consult the INSTALL file to learn how to build and install
binaries of Source-Navigator.


% cat INSTALL
Note: These build/install instructions assume that you have
already downloaded and extracted the files from the zip
or tar file.

Generic Build Notes:

We suggest building outside of the source directory. This way, all
build related files for a specific architecture are stored outside
of the source directory. This makes it easy to build multiple
executables from a single source tree.

We suggest building outside of the src directory, this might
be a new concept for most users, but it is really quite simple
once you get the hang of it. With a build dir, all build
related files for a specific architecture are stored outside
of the src directory, so you can build multiple executables
from the same source tree.

UNIX Build:

To build under a UNIX system, simply create a build directory
and run the configure script. The following commands assume
the release is 5.0.1 and that the user wants to install
into a non-default location (/usr/sourcenav).

% mkdir snbuild ; cd snbuild
% ../sourcenav-5.0.1/configure --prefix=/usr/sourcenav
% make
% make install

Windows Build (VC++):

Building under Windows is more tricky when compared to the UNIX
build, be sure to follow the instructions exactly.

Windows versions of Source-Navigator are created using the VC++
compiler and Cygwin. One needs to run the vcvars32.bat script
to setup the needed env vars. Typically, this is done by starting
command.com on Windows 95/98 or cmd.exe under NT and then
running the vcvars32.bat script in the VC++ bin directory.

After VC++ env vars are setup, start a bash shell by cd'ing to
the Cygwin root directory and running cygwin.bat. In the bash
shell, run the following commands.

% export CC=cl
% export CFLAGS="-Z7 -Od"

You can now run the configure script in the normal way. Of course,
there are a couple of things to take note of. First, the configure
script must be run with a relative path (../sourcenav-5.0.1/configure).
Second, the --prefix path must be passed as a Windows native path,
the following example assumes that /usr/sourcenav is mounted
as D:/Cygwin/usr/sourcenav.

% mkdir snbuild ; cd snbuild
% ../sourcenav-5.0.1/configure --prefix=D:/Cygwin/usr/sourcenav
% make
% make install


Binary Install:

To install a binary release of Source-Navigator, extract the
files from the archive and add the sourcenav-5.0.1/bin
directory to your PATH. You can then run Source-Navigator
from the command line using the snavigator script. Windows
users can also double-click on the snavigator.exe executable in
the Explorer.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-06-06 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-06-06 17:16 Source Navigator 5.0 and [incr TCL] Rodger Hughes
2001-06-06 17:33 ` Ian Roxborough
2001-06-06 17:50 ` Mo DeJong

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).