29 #ifndef LIB_QUERY_UTIL_H 30 #define LIB_QUERY_UTIL_H 67 string extractID (Symbol,
string const& termString);
69 string removeTerm (Symbol,
string& queryString);
70 bool hasTerm (Symbol sym,
string const& queryString);
72 string appendTerms (
string const& pred1,
string const& pred2);
79 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.