[Xapian-tickets] [Xapian] #521: Precedence of HATE is surprising
Xapian
nobody at xapian.org
Thu Jun 16 05:58:13 BST 2011
#521: Precedence of HATE is surprising
-------------------------+--------------------------------------------------
Reporter: olly | Owner: olly
Type: defect | Status: new
Priority: normal | Milestone: 1.2.x
Component: QueryParser | Version: 1.2.3
Severity: normal | Keywords:
Blockedby: | Platform: All
Blocking: |
-------------------------+--------------------------------------------------
Comment(by olly):
There are some problems with the grammar in grammar.out.
One is easily fixed - expr can be a term but can also be a prob which can
be a term.
I think you don't want to allow expr to be a term directly.
The rules for group and phrase_term also seem to be wrong - these needs to
start with a TERM, but your rules seem to mean it's the last but one token
which needs to be a TERM. I think the recursive rule in each case needs
its RHS transposing.
But there are other issues which seem harder to address - for example, you
can specify arbitrary numbers of PLUS and MINUS in a row (because unop
loops back to expr). Also even without that, you can write: term1 PLUS
PLUS term2 (first PLUS from binop, second from unop).
--
Ticket URL: <http://trac.xapian.org/ticket/521#comment:6>
Xapian <http://xapian.org/>
Xapian
More information about the Xapian-tickets
mailing list