9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] something like cscope/cbrowser?
@ 2006-03-27 22:18 Lluís Batlle i Rossell
  2006-03-27 22:28 ` Steve Simon
  2006-03-27 23:08 ` Brantley Coile
  0 siblings, 2 replies; 5+ messages in thread
From: Lluís Batlle i Rossell @ 2006-03-27 22:18 UTC (permalink / raw)
  To: 9fans Mailing list

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

Hi,

it's not a plan9-only question... but here read many developers with 
expertise. At work, dealing with big amounts of code (most of them 
unknown to me), I've found the pair "cscope" and "cbrowser" really 
helpful, even with C++ code. I'm wondering what do you usually use.
I likely want to avoid beliving every developer using plan9 uses acme 
with greps in it. :)

btw, even vim is always my editor, cbrowser and acme made me acknowledge 
that using keys for coding is not faster than using mostly a mouse 
acme-style.

Thanks in advance,
Lluís

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3311 bytes --]

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

* Re: [9fans] something like cscope/cbrowser?
  2006-03-27 22:18 [9fans] something like cscope/cbrowser? Lluís Batlle i Rossell
@ 2006-03-27 22:28 ` Steve Simon
  2006-03-27 23:08 ` Brantley Coile
  1 sibling, 0 replies; 5+ messages in thread
From: Steve Simon @ 2006-03-27 22:28 UTC (permalink / raw)
  To: 9fans

> I've found the pair "cscope" and "cbrowser" really 
> helpful, even with C++ code.

I wrote a naïve C parser in lex which generates a searchable
flat (2) file database of functions/identifers/comments/strings etc.

Its is not big, and its not clever, but I find it useful

/n/sources/contrib/steve/srch.tzr.gz

-Steve


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

* Re: [9fans] something like cscope/cbrowser?
  2006-03-27 22:18 [9fans] something like cscope/cbrowser? Lluís Batlle i Rossell
  2006-03-27 22:28 ` Steve Simon
@ 2006-03-27 23:08 ` Brantley Coile
  2006-03-30 17:38   ` rog
  2006-04-03 10:51   ` Abhey Shah
  1 sibling, 2 replies; 5+ messages in thread
From: Brantley Coile @ 2006-03-27 23:08 UTC (permalink / raw)
  To: 9fans

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

I use acme and the rc function `g' or small permutations of it.

fn g {grep -n $* *.[chsyl] /dev/null}

For just looking at headers I just change the function a bit.

fn gh {grep -n $* *.h /dev/null}

Then I can just click on the file:line and Whammo, I'm there.

[-- Attachment #2: Type: message/rfc822, Size: 8555 bytes --]

[-- Attachment #2.1.1: Type: text/plain, Size: 567 bytes --]

Hi,

it's not a plan9-only question... but here read many developers with 
expertise. At work, dealing with big amounts of code (most of them 
unknown to me), I've found the pair "cscope" and "cbrowser" really 
helpful, even with C++ code. I'm wondering what do you usually use.
I likely want to avoid beliving every developer using plan9 uses acme 
with greps in it. :)

btw, even vim is always my editor, cbrowser and acme made me acknowledge 
that using keys for coding is not faster than using mostly a mouse 
acme-style.

Thanks in advance,
Lluís

[-- Attachment #2.1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3311 bytes --]

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

* Re: [9fans] something like cscope/cbrowser?
  2006-03-27 23:08 ` Brantley Coile
@ 2006-03-30 17:38   ` rog
  2006-04-03 10:51   ` Abhey Shah
  1 sibling, 0 replies; 5+ messages in thread
From: rog @ 2006-03-30 17:38 UTC (permalink / raw)
  To: 9fans

src(1) is extremely useful.



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

* Re: [9fans] something like cscope/cbrowser?
  2006-03-27 23:08 ` Brantley Coile
  2006-03-30 17:38   ` rog
@ 2006-04-03 10:51   ` Abhey Shah
  1 sibling, 0 replies; 5+ messages in thread
From: Abhey Shah @ 2006-04-03 10:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

Hello,
In inferno acme I've edited /acme/edit/guide, so one line is
  e '.b:0,$' | x '/^[a-z]*\([a-zA-Z,: ]*\)[a-z :]+{\n/' | ./p -n
This gives me a clickable list of all the functions in limbo files I 
have open. Also in the same file is e 'Errors:0,$' | c'' which clears 
the window I just made with all the function names.
You can do similiar things with plan 9 acme and I'd actually be curious 
to see the contents of anybody else guide file.

Abhey
>
> From: Lluís Batlle i Rossell <viriketo@gmail.com>
> Date: 27 March 2006 23:18:04 BST
> To: 9fans Mailing list <9fans@cse.psu.edu>
> Subject: [9fans] something like cscope/cbrowser?
> Reply-To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu>
>
>
> Hi,
>
> it's not a plan9-only question... but here read many developers with 
> expertise. At work, dealing with big amounts of code (most of them 
> unknown to me), I've found the pair "cscope" and "cbrowser" really 
> helpful, even with C++ code. I'm wondering what do you usually use.
> I likely want to avoid beliving every developer using plan9 uses acme 
> with greps in it. :)
>
> btw, even vim is always my editor, cbrowser and acme made me 
> acknowledge that using keys for coding is not faster than using mostly 
> a mouse acme-style.
>
> Thanks in advance,
> Lluís
>
>
  

[-- Attachment #2.1: Type: text/plain, Size: 296 bytes --]

from postmaster@ethel:
The following attachment had content that we can't
prove to be harmless.  To avoid possible automatic
execution, we changed the content headers.
The original header was:

	Content-Transfer-Encoding: quoted-printable
	Content-Type: text/enriched;
	charset=ISO-8859-1

[-- Attachment #2.2: file.suspect --]
[-- Type: application/octet-stream, Size: 1616 bytes --]

Hello,

In inferno acme I've edited /acme/edit/guide, so one line is 

 e '.b:0,$' | x '/^[a-z]*\([a-zA-Z,: ]*\)[a-z :]+{\n/' | ./p -n

This gives me a clickable list of all the functions in limbo files I
have open. Also in the same file is e 'Errors:0,$' | c'' which clears
the window I just made with all the function names.

You can do similiar things with plan 9 acme and I'd actually be
curious to see the contents of anybody else guide file.  


Abhey

<excerpt><bold><color><param>0000,0000,0000</param>

From: </color></bold>Lluís Batlle i Rossell <<viriketo@gmail.com>

<bold><color><param>0000,0000,0000</param>Date: </color></bold>27
March 2006 23:18:04 BST

<bold><color><param>0000,0000,0000</param>To: </color></bold>9fans
Mailing list <<9fans@cse.psu.edu>

<bold><color><param>0000,0000,0000</param>Subject: </color>[9fans]
something like cscope/cbrowser?

<color><param>0000,0000,0000</param>Reply-To: </color></bold>Fans of
the OS Plan 9 from Bell Labs <<9fans@cse.psu.edu>



Hi,


it's not a plan9-only question... but here read many developers with
expertise. At work, dealing with big amounts of code (most of them
unknown to me), I've found the pair "cscope" and "cbrowser" really
helpful, even with C++ code. I'm wondering what do you usually use.

I likely want to avoid beliving every developer using plan9 uses acme
with greps in it. :)


btw, even vim is always my editor, cbrowser and acme made me
acknowledge that using keys for coding is not faster than using mostly
a mouse acme-style.


Thanks in advance,

Lluís



</excerpt> 

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

end of thread, other threads:[~2006-04-03 10:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-27 22:18 [9fans] something like cscope/cbrowser? Lluís Batlle i Rossell
2006-03-27 22:28 ` Steve Simon
2006-03-27 23:08 ` Brantley Coile
2006-03-30 17:38   ` rog
2006-04-03 10:51   ` Abhey Shah

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 NNTP newsgroup(s).