Rosetta Code Lexical Scanner

A general call came out on a compiler message group I’m a member of for example implementations of a simple lexical scanner implementing this specification  As a C# example had not yet been supplied, I implemented a straightforward and heavily documented example in this language.