Possible Duplicate:
Best algorithm for evaluating a mathematical expression?
I mean like when you enter this in Delphi:
var i : integer;
begin
  i=5 + 5 + (2 * (3 + 2)) + (1 * 4 + (1 - 3))
end;
But I want a command that works in this way:
var i : integer; s:string;
begin
  s:='5 + 5 + (2 * (3 + 2)) + (1 * 4 + (1 - 3))';
  i:=ParseInt(s);
end;
Thanks in advance
 
     
     
    