Releases: Tyill/interpreter
Releases · Tyill/interpreter
Interpreter_1.2.3
Interpreter_1.2.2
internal func fix
Interpreter_1.2.1
Many attributes.
Example:
[attr1][attr2]
function myFunc{ $0 += $1; }; // define
myFunc(1,2); // call
Interpreter_1.2.0
args begin with '$0' for functions and macros
Interpreter_1.1.9
append C api
Interpreter_1.1.8
-fix of user function
-add test and example
Interpreter_1.1.7.1
-inside user function fix
Interpreter_1.1.7
Append define usen function inside the script.
Example:
$a = 1; $b = 2;
function myFunc{ $a += $b; }; // define
myFunc(); // call
With params:
function myFunc{ $arg0 += $arg1; }; // define
myFunc(2, 3); // call
Interpreter_1.1.6
Added attribute before any variable or function, the attribute can only be obtained through reflection.
Example:
ir.addOperator("=", [&ir](string& leftOpd, string& rightOpd) ->string {
string attr = ir.getAttributeByIndex(ir.currentEntity().beginIndex - 1); // mute
leftOpd = rightOpd;
return leftOpd;
}, 100);
ir.addAttribute("mute");
string scenar = "mute $a = 3; ";
string res = ir.cmd(scenar);
Interpreter_1.1.5
-append 'Structure' to base lib, example:
scenar = "$b = 12; e = Struct{ one : $b + 5, two : 2}; e.three = e.one + e.two + 3; e.three";
res = ir.cmd(scenar); // 22