Branch: Tag:

2001-06-01

2001-06-01 09:14:22 by David Norlin <norlin@roxen.com>

API changed for telling the parser which words are field names.

Rev: lib/modules/Search.pmod/Grammar.pmod/AbstractParser.pike:1.2
Rev: lib/modules/Search.pmod/Grammar.pmod/DefaultParser.pike:1.2
Rev: lib/modules/Search.pmod/Grammar.pmod/module.pmod:1.3

1: - static void create(mapping(string:string) options) {} + //! @param options + //! @mapping + //! @member string "implicit" + //! Either of the strings: "and", "or". + //! If not supplied, default to "or". + //! @member multiset(string) "fields" + //! The words that should be recognized as fields. + //! If not supplied, it should default to + //! @tt{ Search.Grammar.getDefaultFields() @} + //! @endmapping + static void create(void|mapping(string:mixed) options) {} +    Search.Grammar.ParseNode parse(string query) {}