Announce: PySgrep -- Structured grep
andmalc-ng at IHATESPAMmalcolmson.ca
Sun May 20 00:57:16 EDT 2001
I tried building this with "/bin/python setup.py build" under Cygwin/Bash
shell on NT on got the following error:
In file included from common.c:18:
sgrep.h:535: warning: function declaration isn't a prototype
sgrep.h:623: warning: function declaration isn't a prototype
sgrep.h:676: warning: function declaration isn't a prototype
common.c:67: parse error before `VERSION'
common.c:93: warning: function declaration isn't a prototype
error: command 'gcc' failed with exit status 1
Does anyone know what changes to make to the sources allow PySgrep to build
and install on Cygwin?
"Roman Suzi" <rnd at onego.ru> wrote in message
news:mailman.990163286.11872.python-list at python.org...
> On Thu, 17 May 2001, Dave Kuhlman wrote:
> Wow! Coooool!
> Not so long time ago I asked if there is a wrapper for sgrep.
> Thanks a lot!
> > I've made a Python wrapper for sgrep.
> > Here is a brief description of sgrep from the sgrep home page:
> > "sgrep (structured grep) is a tool for searching and indexing text,
> > SGML,XML and HTML files and filtering text streams using structural
> > criteria. The data model of sgrep is based on regions, which are
> > nonempty substrings of text. Regions are typically occurrences of
> > constant strings, SGML-tags, or meaningful text elements, which are
> > recognizable through some delimiting strings or the builtin SGML, XML
> > and HTML parser. Regions can be arbitrarily long, arbitrarily
> > overlapping, and arbitrarily nested.
> > "Sgrep is a convenient tool for making queries to almost any kind of
> > text files with some well kown structure. These include programs,
> > folders, news folders, HTML, SGML, etc... With relatively simple
> > queries you can display mail messages by their subject or sender,
> > extract titles or links or any regions from HTML files, function
> > prototypes from C or make complex queries to SGML files based on the
> > DTD of the file."
> > You can find my Python wrapper at:
> > http://www.rexx.com/~dkuhlman/pysgrep-1.0a.tar.gz
> > See the file README.pysgrep in the PySgrep distribution for
> > information on how to build it. I've only built it on Linux.
> > I've written some documentation on PySgrep and how to use it.
> > It's at:
> > http://www.rexx.com/~dkuhlman/pysgrep.html
> > You can read about sgrep itself at:
> > http://www.cs.helsinki.fi/u/jjaakkol/sgrep.html
> > Comments and suggestions will be appreciated.
> > - Dave
> Sincerely yours, Roman A.Suzi
> - Petrozavodsk - Karelia - Russia - mailto:rnd at onego.ru -
More information about the Python-list