The following Go program is an example of a simple scanner (aka lexer, or tokenizer). A scanner reads a string (or file), and converts the string into a stream of tokens for the a language. In this ...