Use reversed() instead of creating a new temporary list.
Make the import private to keep the global namespace clean.
Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration
Improve regex tokenizer example by using re.finditer().

Also, improve variable names and fix column numbers
in the generated output.
merge
Fix markup.
merge
Remove unused leftover stray line
merge