pike.git / lib / modules / Search.pmod / Grammar.pmod / DefaultParser.pike

version» Context lines:

pike.git/lib/modules/Search.pmod/Grammar.pmod/DefaultParser.pike:98:    // SHOW(tokens);    return    peek(offset)[0] == TOKEN_TEXT &&    lower_case(peek(offset)[1])=="date" &&    (< TOKEN_EQUAL, TOKEN_LESSEQUAL, TOKEN_GREATEREQUAL,    TOKEN_NOTEQUAL, TOKEN_LESS, TOKEN_GREATER >)[ peek(offset + 1)[0]];   }         //! - protected void create(mapping(string:mixed)|void opt) { -  options = opt || ([ "implicit" : "or" ]); + protected void create(mapping(string:mixed) opt = ([ "implicit" : "or" ])) { +  options = opt;    if (!options["fields"])    options["fields"] = getDefaultFields();   }      //!   ParseNode parse(string q) {    fieldstack = ({ "any" });    tokens = tokenize(q);    return parseQuery();   }