[Zope-Checkins] CVS: Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser - testParser.py:1.1.2.1
Andreas Jung
andreas@digicool.com
Fri, 11 Jan 2002 16:00:46 -0500
Update of /cvs-repository/Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser
In directory cvs.zope.org:/tmp/cvs-serv19029
Added Files:
Tag: ajung-textindexng-branch
testParser.py
Log Message:
added
=== Added File Zope/lib/python/Products/PluginIndexes/TextIndexNG/queryparser/testParser.py ===
#!/usr/bin/env python2.1
import queryparser
import readline,os,atexit
histfile = os.path.expanduser('~/.pyhist')
try:
readline.read_history_file(histfile)
except IOError: pass
atexit.register(readline.write_history_file,histfile)
while 1:
s = raw_input("> ")
print queryparser.parseQuery(s)