Text this: The logical approach to automatic sequences : exploring combinatorics on words with Walnut / Jeffrey Shallit.