finished writing Cogscript translator