how to execute this?

Hi!
I need to implement into my main program a parser of simple pascal
commands. I mean I need to read from a text file (I can do this!) and
executing the following:

{**************************************}
  if (T>=10) and (T<=50 then begin
    x:=x+0.003*ecs;
    y:=y-0.02*Vics
  end;
  if {*word*110}=true then begin
   pump:=pump-pump*0.01*V
  end;
{**************************************}

That's it. Very short, but extremely difficult to do for me!
Of course T, x, y, ecs, Vics, pump, V  are global variables in the main
programs. Also, I mean that in one case it will be like I wrote, but
in onother the formulas could be slightly different.

I think what I need is a parser of PASCAL commands. I simple, basic
compiler, whose source could be implemented into the main program.

Does anyone know how to do it or where to find source for it?

thanks in advance.

Raimondo