Hey everybody.
I tried to program a Calculator which can handle the following input.

E = '(' N [oD] ')'
N,D = '1', '2','3','4','5','6','7','8','9','0'
o = '*' ,'/' ,'+' , '-'

For example:
( 123 ), ( 123 + (123) ), ( 123 + ( 123 * ( 123 ) ) )

The input will be line on line with getchar()

Except of putting each char in a table and than
calculating the whole thing what else can I do?

Thanks....