473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

code indexer

Hi,

I posted this message a few days ago in comp.unix.shell and got zero
responses. Can anyone here point me in the right direction?

Thanks,

Kevin
-----

Hi,

does anyone know of a tool I can use to create an index / search
engine for source code (ksh, sh, bash, perl, tcl, expect, awk, C,
java, etc)?

I'm thinking of something that would generate an index based on
keywords, "text", operators, functions, etc... I'm sure I can't be the
1st person to want something like this and I don't want to re-invent
the wheel.

I've looked at Exhuberant Ctags and its not quite what I need, but its
in the general vicinity.

I suspect that I could somehow use ViM syntax-highlighting to produce
indices on a file-by-file basis somehow since it knows all the "stuff"
I want to index for all those languages (it needs to for the
highlighting).

Any ideas?

Thanks,

Kevin
Jul 19 '05 #1
1 1556
You can pretty much use any language that can build a parser for each of the
languages you want to do that for. I used a program called 'cscope' which
did something like that for C. You could type in a symbol and what you were
specifically looking for (definition, prototype, instance, etc.) and it
would search an entire directory structure for it. Your problem however is
far more complicated since you want it to apply to multiple languages.
Therefore, you would basically need a builtin parser for EACH language. I
would recommend getting the source code to one of the newer editors such as
the 'vim' that comes with Linux. This tool changes the color of your text,
depending on what type of file you are editing. It seems understand quite a
few languages and does a surprisingly good job. So far, it's worked on
HTML, C, Perl, C++, shell scripts and .conf files.

Kris

"Kevin Collins" <sp*********@toomuchfiction.com> wrote in message
news:a6**************************@posting.google.c om...
Hi,

I posted this message a few days ago in comp.unix.shell and got zero
responses. Can anyone here point me in the right direction?

Thanks,

Kevin
-----

Hi,

does anyone know of a tool I can use to create an index / search
engine for source code (ksh, sh, bash, perl, tcl, expect, awk, C,
java, etc)?

I'm thinking of something that would generate an index based on
keywords, "text", operators, functions, etc... I'm sure I can't be the
1st person to want something like this and I don't want to re-invent
the wheel.

I've looked at Exhuberant Ctags and its not quite what I need, but its
in the general vicinity.

I suspect that I could somehow use ViM syntax-highlighting to produce
indices on a file-by-file basis somehow since it knows all the "stuff"
I want to index for all those languages (it needs to for the
highlighting).

Any ideas?

Thanks,

Kevin

Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Nikhil Patel | last post by:
Hi all, Is it possible to have more than one indexer in a class. If not, are there any good alternative ways to achieve similar functionality. Thanks... -Nikhil
0
by: Brian Takita | last post by:
Hello, I am able to test an object to see if it is an indexer (IsIndexer function), however I don't know how to call the indexer without Unboxing to the object's class. Do I need to use...
1
by: Dotnetjunky | last post by:
Hi all Is it correct that there's a link between indexer and Items property in C# ? If yes, please show me what is it ? thanks in advance. -- Dotnetjunky
1
by: Iulian Ionescu | last post by:
I have the following problem. I derived a class from ArrayList to provide some additional events I need. Then I derived 2 different classes from this one and each of them defines an indexer that...
16
by: Yoramo | last post by:
Hello I have a class the containes several ArrayList's and I whold like to use a indexer for each one. I'm getting a compilation error. "already defines a member called 'this' with the same...
7
by: Oren | last post by:
hi I have created a class with a simple indexer what is the syntax for adding the function "Remove" ... myClass.colors=Color.Black; // WORKS O myClass.colors.Remove(); // ?? .......
5
by: SpotNet | last post by:
Hello NewsGroup, I have a custom class and a collection for that custom class that inherits CollectionBase. As such; public class MyClass { private string datamember1 = string.Empty,...
5
by: Clive Dixon | last post by:
Is it possible to access an indexer of a base class with identical signature, e.g. class Class1 { public object this { get { // ...
3
by: Nash Alexx | last post by:
Hello! I am quite new to C#, and one concept that really gives me a headache is "indexer". I have gone through the MSDN examples, and, at some level know how to use indexers. But, the thing is I...
17
by: SemSem | last post by:
i want to know waht is an index and how we use it with a simple example including the main of the program . thanx -- Islam Khalil,
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.