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.
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"
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
34567890123456789 34567890123456789
This is nonsense
0+0*0+1