計算機語言引擎
對於重新發明二進制編碼的荒謬的看,請窺視一下。是你,數學和字符串:)
尋找以這種方式完成的其他語言。只需添加拉動請求!
$ x =新的cngn(5);
//使用StringParse動態插入數據中的字符串
$ string =“ inadeio {x0} {x1} {x2} {x3} {x4}”;
$ x-> load_vars([25,2,3,4,60]);
$ string = $ x-> stringparse($ string,$ x-> vars);
echo $ string。 “
”
$ x-> add_vars(3);
$ x-> set_f_of('1-3 + {x0}');
$ x-> set_g_of('1 + {x0} + 20');
$ seq = [6,10,35,30,10,4,5];
$ x-> register_fn_x(2);
$ seq = [“ {x2} + {x6}”,22,“ {x1} + 3”,30,[10,11,-2],4,5,“ 101010”];
$ x-> load_vars($ seq);
//不要流汗,011001是“返回 *”的代碼;
$ x-> load_fn_x([“ {x0}”,“ {x5} {c011001,0} - {x2} + {x3} + 5 + 5 + {x1}”];
echo json_encode($ x-> fn_x);
$ t = $ x-> mathparse($ x-> fn_x [1],$ x-> vars);
$ t = -28
$ f = [[45,-2,16],[23,5,16]];
$ t = $ x-> mathparse($ x-> fn_x [1],$ f);
$ t = -28
$ t = $ x-> intemand($ f [0]);
$ x-> load_fn_x([“ {C011110,1} {C011110,5} {C0111110,0}”,“” {C111011,7}”];
只需使用您的想像力和標準來提出您需要的答案!