@AthenaOfDelphi:
Thanks for the answer. The reason why i need this is that i am making a simple scripting language for a small game. At the moment i can assign a value to a variable, like this:
X := 5
but i want it to be able to calculate expressions and assign that value. Im a little unsure about how to do this, so I hope someone could show some examplecode that does this with numbers only. Then i can make it work with the variables i need , and i will also learn something from it .
Thanks!