Dec 162017
 
Pascal Unit w/source to perform Math functions in a string line argument.
File EVALTP5.ZIP from The Programmer’s Corner in
Category Pascal Source Code
Pascal Unit w/source to perform Math functions in a string line argument.
File Name File Size Zip Size Zip Type
EVAL.PAS 3725 833 deflated
EVALUATE.DOC 1044 486 deflated
EVALUATE.EXE 8752 5935 deflated
EVALUATE.PAS 938 479 deflated

Download File EVALTP5.ZIP Here

Contents of the EVALUATE.DOC file


Evaluate TPU for Turbo Pascal 5.5
10/11/89
Unit from Don McIver
SCB CheckBook Program

The Unit EvalValue is a recurrsive Function that will take a string[255]
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.
Pat Dant
10/10/1989



 December 16, 2017  Add comments

Leave a Reply