:- use_module(library(dcg/basics)).
//
upto_colon(Atom) --> string(Codes), ":", !, { atom_codes(Atom, Codes) }.