Evaluate TPU for Turbo Pascal 5.5
Unit from Don McIver
SCB CheckBook Program
The Unit EvalValue is a recurrsive Function that will take a string
and return the arithmatic answwer to the string. To see what functions
are supported look at the Eval.Pas file for Token listings.
The Function EvalValue is used in a Command Line Argument to demo its
capacity. I've asked Don to develop a more comprehensive usage of his
Eval Function which will include Memory Variables etc. He'll eventually
get this out. Until then I thought I would offer his basic unit from his
SCB Source Files.
The use of recursion makes this a fast and compact method of dealing with
arithmatic operations in programs.
Hope you enjoy.