Monday 24 February 2020

Conditional expression evaluator, some kind symbol interpreter needed

TL;DR; I am looking for some kind symbols interpreter which allow to evaluate conditional expression given as a string.Details:There are rules given in JSON file, which look like:x==0 and y==0 then z=0x==1 or y ==1 then z=1x==1 or (y == 1 and x == 2) then z=3So it just 'if conditions then do', variables are numbers and strings, and it contains mostly equality operators. x,y,z are some variables already in code. Expression scheme can be adjusted (this is flexible right now), only limitation is that it needs to support AND, OR and parentheses.

Submitted February 24, 2020 at 09:50AM by kszyh_pl

No comments:

Post a Comment