Trail programs for miscellaneous languages