Skip to content

Releases: Tyill/interpreter

Interpreter_1.2.3

24 Sep 04:05
Compare
Choose a tag to compare

added types into base_lib:

scenar = "a: int = 123; type(a)";
res = ir.cmd(scenar); // int

scenar = "b: str = "abc"; type(b)";
res = ir.cmd(scenar); // str

Interpreter_1.2.2

06 Jul 17:20
75ab1c1
Compare
Choose a tag to compare

internal func fix

Interpreter_1.2.1

21 Jan 10:42
Compare
Choose a tag to compare

Many attributes.
Example:

[attr1][attr2]
function myFunc{ $0 += $1; };  // define
myFunc(1,2);                            // call      

Interpreter_1.2.0

31 Dec 11:40
Compare
Choose a tag to compare

args begin with '$0' for functions and macros

Interpreter_1.1.9

21 Jul 06:32
Compare
Choose a tag to compare

append C api

Interpreter_1.1.8

22 Jan 11:42
Compare
Choose a tag to compare

-fix of user function
-add test and example

Interpreter_1.1.7.1

09 Jan 15:20
Compare
Choose a tag to compare
Interpreter_1.1.7.1 Pre-release
Pre-release

-inside user function fix

Interpreter_1.1.7

05 Jan 13:33
Compare
Choose a tag to compare

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

13 Jul 18:33
Compare
Choose a tag to compare

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

02 Jul 07:02
Compare
Choose a tag to compare

-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