> Hi group,
>
> I am implementing a fairly simple and straightforward text-search (I
> display each line that contains required pattern ) that supports
> Boolean queries in the following format:
First, there is no need to post the same question three times within
minutes. Please familiarize yourself with the way Usenet works.
Second, ...
> Should I write a parser for that followed by walking the AST (abstract
> syntax tree) - javacc or antlar? - or would java regular expressions
> suffice? it should be fast, whereas java regex is known to be slow....
... write a parser. Use the tool you feel most comfortable with, or,
since this seems to be a simple parser, write the parser by hand.
Regular expressions are not a panacea to all kinds of processing text input.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/