re: tags

2011-11-14 Thread Doug Snead
FWIW ... here's something I use instead of ctags for picolisp. 

$ cat /usr/local/bin/lisptags

#!/bin/sh 
# make a tags file for pico lisp source files.
# use:
#   lisptags foo.l bar.l baz.l ... bof.l
# generate the file 'tags'
# [based on lisptags csh script by John Foderaro, c.1982]
awk '
/^[ \t]*\(d[em][ \t]/ { print $2 \t FILENAME \t?^ $0 $? }
/^[ \t]*\(class[ \t]/ { print $2 \t FILENAME \t?^ $0 $? }
' $* | sort  tags


Doug


--- On Mon, 11/14/11, Henrik Sarvell hsarv...@gmail.com wrote:

 From: Henrik Sarvell hsarv...@gmail.com
 Subject: Re: How to get the signature of function and method definitions
 To: picolisp@software-lab.de
 Date: Monday, November 14, 2011, 6:59 AM
 It's at the end here:
 http://www.prodevtips.com/2010/09/29/emacs-color-themes-tags-cedet-ecb-and-other-customizations/
 
 Not much to it, I do things old school ie I put the
 download in
 /opt/picolisp and simply cd there in a shell and do: ctags
 -e -R
 --languages=-JavaScript,-PHP,-C,-Make,-HTML
 

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: tags

2011-11-14 Thread Thorsten
Doug Snead semaphore_2...@yahoo.com
writes:

Hi Doug,

 FWIW ... here's something I use instead of ctags for picolisp. 

 $ cat /usr/local/bin/lisptags

 #!/bin/sh 
 # make a tags file for pico lisp source files.
 # use:
 #   lisptags foo.l bar.l baz.l ... bof.l
 # generate the file 'tags'
 # [based on lisptags csh script by John Foderaro, c.1982]
 awk '
 /^[ \t]*\(d[em][ \t]/ { print $2 \t FILENAME \t?^ $0 $? }
 /^[ \t]*\(class[ \t]/ { print $2 \t FILENAME \t?^ $0 $? }
 ' $* | sort  tags


 Doug

Are these tag files readable for emacs? 
Since tags seems to be sorted, I guess not, since etags apparently are
not sorted. 


 --- On Mon, 11/14/11, Henrik Sarvell hsarv...@gmail.com wrote:

 From: Henrik Sarvell hsarv...@gmail.com
 Subject: Re: How to get the signature of function and method definitions
 To: picolisp@software-lab.de
 Date: Monday, November 14, 2011, 6:59 AM
 It's at the end here:
 http://www.prodevtips.com/2010/09/29/emacs-color-themes-tags-cedet-ecb-and-other-customizations/
 
 Not much to it, I do things old school ie I put the
 download in
 /opt/picolisp and simply cd there in a shell and do: ctags
 -e -R
 --languages=-JavaScript,-PHP,-C,-Make,-HTML
 

cheers
-- 
Thorsten

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe


Re: script for generating tags for picolisp

2010-08-18 Thread Alexander Burger
Hi Doug,

On Tue, Aug 17, 2010 at 09:19:23PM -0700, Doug Snead wrote:
 ...
 # make a tags file for pico lisp source files.
 ...

As I understand it, this is not exactly what Edwin intended. I think he
wanted a tags file for the main interpreter functions written in C.

Also, the tags for Lisp functions can be obtained easily, as the file
and line number are stored in each symbol under the '*Dbg' property, and
can be used like:

   : (vi 'vi)

Generating the tags for C level functions is a lot trickier, as the
symbols have to be parsed from src/tab.c to get their name in C (e.g.
'+' - 'doAdd'), and then the actual source located (e.g. in big.c).


For the 64-bit versions, the file and line info in '*Dbg' is also
available for the built-in functions (asm instead of C), but
unfortunately not for the 32-bit version.

Cheers,
- Alex
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe


Re: script for generating tags for picolisp

2010-08-18 Thread Edwin Eyan Moragas
Hi Alex,

On Wed, Aug 18, 2010 at 3:41 PM, Alexander Burger a...@software-lab.de wro=
te:
 Hi Doug,

 On Tue, Aug 17, 2010 at 09:19:23PM -0700, Doug Snead wrote:
 ...
 # make a tags file for pico lisp source files.
 ...

 As I understand it, this is not exactly what Edwin intended. I think he
 wanted a tags file for the main interpreter functions written in C

Doug sent something that i actually intended. there's ctags for C functions=


Re: script for generating tags for picolisp

2010-08-18 Thread Edwin Eyan Moragas
Hi Doug,

thanks for this. this would come in handy.

On Wed, Aug 18, 2010 at 12:19 PM, Doug Snead semaphore_2...@yahoo.com wro=
te:
 Here's one shell script I used to use for that (I called it lisptags) ...=
 hopefully it still works :-)

 #!/bin/sh
 # make a tags file for pico lisp source files.
 # use:
 # =A0 =A0 =A0 lisptags foo.l bar.l baz.l ... bof.l
 # generate the file 'tags'
 # [based on lisptags csh script by John Foderaro, c.1982]
 awk '
 /^[ \t]*\([bd][em][ \t]/ {
 n=3D$2;
 gsub(/^\(/,,n);
 gsub(/\)$/,,n);
 print n \t FILENAME \t?^ $0 $?;
 }
 /^[ \t]*\(class[ \t]/ {
 n=3D$2;
 gsub(/^\(/,,n);
 gsub(/\)$/,,n);
 print n \t FILENAME \t?^ $0 $?;
 if (n ~ /^\+/) {
 =A0gsub(/^\+/,,n);
 =A0print n \t FILENAME \t?^ $0 $?;
 }
 }
 ' $* | sort  tags

 =3D =3D =3D



 --- On Tue, 8/17/10, Edwin Eyan Moragas e...@yndy.org wrote:

 From: Edwin Eyan Moragas e...@yndy.org
 Subject: script for generating tags for picolisp
 To: picolisp@software-lab.de
 Date: Tuesday, August 17, 2010, 12:05 AM
 Hi all,

 anybody who made an attempt to create such kind of script?
 or maybe a
 resource somewhere in the interwebs for this?

 cheers,

 /e
 --
 UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe




 --
 UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe

-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe


Re: script for generating tags for picolisp

2010-08-17 Thread Doug Snead
Here's one shell script I used to use for that (I called it lisptags) ... 
hopefully it still works :-)

#!/bin/sh 
# make a tags file for pico lisp source files.
# use:
#   lisptags foo.l bar.l baz.l ... bof.l
# generate the file 'tags'
# [based on lisptags csh script by John Foderaro, c.1982]
awk '
/^[ \t]*\([bd][em][ \t]/ {
n=$2;
gsub(/^\(/,,n);
gsub(/\)$/,,n);
print n \t FILENAME \t?^ $0 $?;
}
/^[ \t]*\(class[ \t]/ {
n=$2;
gsub(/^\(/,,n);
gsub(/\)$/,,n);
print n \t FILENAME \t?^ $0 $?;
if (n ~ /^\+/) {
  gsub(/^\+/,,n);
  print n \t FILENAME \t?^ $0 $?;
}
}
' $* | sort  tags

= = =



--- On Tue, 8/17/10, Edwin Eyan Moragas e...@yndy.org wrote:

 From: Edwin Eyan Moragas e...@yndy.org
 Subject: script for generating tags for picolisp
 To: picolisp@software-lab.de
 Date: Tuesday, August 17, 2010, 12:05 AM
 Hi all,
 
 anybody who made an attempt to create such kind of script?
 or maybe a
 resource somewhere in the interwebs for this?
 
 cheers,
 
 /e
 -- 
 UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe
 


  
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe