ExpressionEvaluator library

agraham

Expert
Licensed User
Longtime User
I've been meaning to do this for my own use for a while and I have finally got around to producing both Basic4ppc and Basic4android versions.

This is the recursive descent parser from my BasicLib library stripped down to deal with arithmetic functions only. Pass it a valid arithmetic expression as a string and it will return the result. See the help to see what is supported but basically it will evaluate any arithmetic expression that Basic4ppc or Basic4android can. It also supports variables that may be used to pass values and store intermediate results.

EDIT :- Added the source for merging which I forgot to include in the archive.
 

Attachments

  • ExpressionEvaluator1.1.zip
    12.2 KB · Views: 95
  • ExpressionEvaluator1.1source.zip
    4.1 KB · Views: 71
Last edited:

mjcoon

Well-Known Member
Licensed User
I thought I was going to find a B4A library. Am I looking in the wrong place (after all these years!)?
 

agraham

Expert
Licensed User
Longtime User
Yes, this is a Basic4ppc library. See the path at top left above
Home -> Forums -> Other Products ->Basic4ppc (Windows Mobile) ->Code Samples & Tips -> Additional Libraries
Erel has one for B4X here
 
Last edited:
Top