Console calculator Part 1 : The Scanner

This is a series of 3 code snippets which together form a completly working "calculator".
I used a console application in VS C# 2008, but 2005 should cause no problems.
To start with : here you have the code for a scanner class.
A scanner reads the inputline and tries to get some meaningfull words(sometimes called tokens) from it. It then passes that information to a parser.

Yes.
This scanner just does what it says, it scans the inputstring for "tokens".
These tokens are fed to a parser It is the job of the parser to find out about operator precedence.
Look also for the third snippet which will put al this together.
Succes!

It is up to you which argument string to pass to Parse.InputLine(see line 59 of the above snippet in the previous post)
But I am wondering why you want to do this, because this calculator is a rather interactive console application.