Generates automatons from regular expressions to extract tokens from text files