WebSearch: bnf parsing of search queries