20 #ifndef LIB_QUERY_UTIL_H 21 #define LIB_QUERY_UTIL_H 58 string extractID (Symbol,
string const& termString);
60 string removeTerm (Symbol,
string& queryString);
61 bool hasTerm (Symbol sym,
string const& queryString);
63 string appendTerms (
string const& pred1,
string const& pred2);
70 string typeID {util::typeStr<TY>()};
uint countPred(const string &q)
count the top-level predicates in the query string.
void normaliseID(string &id)
ensure standard format for a given id string.
inline string literal This is a marker type to indicate that
Implementation namespace for support and library code.
string appendTerms(string const &pred1, string const &pred2)
string extractID(Symbol sym, const string &termString)
(preliminary) helper: instead of really parsing and evaluating the terms, just do a regular expressio...
Token or Atom with distinct identity.
Marker types to indicate a literal string and a Symbol.
string removeTerm(Symbol sym, string &queryString)
(preliminary) helper: cut a term with the given symbol.