From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu From: steve.simon@snellwilcox.com Subject: Re[2]: [9fans] samuel Message-Id: <394540922@snellwilcox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Id: <394540922-1@snellwilcox.com> Content-Transfer-Encoding: 7bit Date: Mon, 11 Mar 2002 15:06:06 +0000 Topicbox-Message-UUID: 63c2a8e0-eaca-11e9-9e20-41e7f4b1d025 Years ago I wrote a bit of lex that would build a 2 file ASCII database of the Unix source code. The primary file contained an object type type, a file ID number, the line number in the source, and text found. A seccond file mapped file paths to file ID numbers. The object types function definitions, variable definitions, string literals, and comments. The idea was to be able to grep through the primary file, join the hits to the seccondry, and feed the result to B so sam jumps the offending object. I guess this is pretty much what cscope does but I didn't know of it at the time - perhaps it wasnt around? This was very usefull when bugtracking Solaris where we often only had an obscure error message which could have come from anywhere in the kernel / applications / X / etc... The limitations of parsing with just lex and not understanding C syntax is obvious but for a quick and dirty tool it worked well. I hasen to add this was only usefull as I had many files spread over many directories which I didn't want to learn my way around. For day to day editing sam and grep work for me. -Steve ---------------------------------------------------------------------- The contents of this communication are confidential to the normal user of the email address to which it was sent. If you have received this email in error, any use, dissemination, forwarding, printing or copying of this email is strictly prohibited. If this is the case, please notify the sender and delete this message. ----------------------------------------------------------------------