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>()};
Token or Atom with distinct identity.
bool hasTerm(Symbol sym, string const &queryString)
string appendTerms(string const &pred1, string const &pred2)
void normaliseID(string &id)
ensure standard format for a given id string.
string extractID(Symbol sym, const string &termString)
(preliminary) helper: instead of really parsing and evaluating the terms, just do a regular expressio...
uint countPred(const string &q)
count the top-level predicates in the query string.
const string buildTypeID()
string removeTerm(Symbol sym, string &queryString)
(preliminary) helper: cut a term with the given symbol.
Implementation namespace for support and library code.
Marker types to indicate a literal string and a Symbol.