"string to math expression"

indeed that is a good question, and usually you dont come around math equations in strings. I am working on a genetic algorithm. In short, i have a bitcode. like 00010101011010101, and the first 4, 0001 mean 1, the next few (0101) could mean + for example. the bytecode is stored in strings (I seperate them per comma like “0001,1010,…” i could not find a way to use custom structs in bp)
It was just to easy for me to translate the bytecode to strings of math operators and numbers.

Anyways, I probably should figure out how to make a decent calculator. (only needs to be for basics, + - * /)