program which indexes tokens in files