Some test data for Project 2

Here is some input data that you might want to run your program with. The TA who grades this project may not run your programs with this set of data. Furthermore, your program may not be correct even if it runs correctly with these inputs. It is your responsiblity to test your program as thoroughly as you can before submitting it. Your error messages need not be identical to what I have suggested below, but should be similar.
  1. 34567890123456789            
    

    In the above input, there is a large number, followed by a bunch of blanks, followed by CTRL D. The expression should evaluate to 34567890123456789.

  2. 34567890123456789 +
    

    In the above input, the + operator is followed by a bunch of blanks, followed by CTRL D. Your program should produce an error message such as: "Incomplete expression"

  3. 34567890123456789 +
    34567890123456789 +
    34567890123456789 *
    34567890123456789 *
    34567890123456789 *
    34567890123456789 *
    34567890123456789 
    

    In the above input, each operator is immediately followed by an end-of-line character. The last operand is followed immediately by CTRL D. This expression is error-free and should evaluate to:


    49358774048552875574263063403002943246318251484537400195593559527707664166967396527

  4.            34567890123456789            34567890123456789
    
    In the above input, there are leading blanks before the first operand. The expression is erroneous because instead of typing an operator, the user typed something else. Your program should produce an error message such as: "Expecting an operator, found some other character instead." It is not important for your program to report precisely what character was found instead of an operator.

  5. This is nonsense
    
    The above input is meaningless and on reading 'T' your program should produce an error message similar to: "Expecting an operand, found some other character instead."

  6. 0+0*0+1
    
    This is a valid expression. There are no white spaces whatsoever and the last operand, namely 1, is immediately followed by CTRL D. As you might expect, the expression should evaluate to 1.