REFLECTScript is using its own syntax, it is not possible to execute valid C# code.
Pls have a look to the short documentation about its syntax.
The files section contains a zip file with a chm for a brief overview about
the builtin commands like loops, conditions, etc.
Unfortunalty I didn't find any time to complete the documentation yet.
Examples:
By using the BaseObjects (Hashtable) Add method of an Interpreter instance you can
pass references into the interpreter context from inside your own app,
e.g.
-----
myInterpreter.BaseObjects.Add("obj",myObj);
myInterpreter.Execute("myObj.anyMeth param1;");
-----
By using the methods of the Command object from inside the Interpreter you
can instance objects from script.
Do you simply pass in any valid C# code to the Execute Method?
If not, could you provide at least one sample of the use.
Thank You.
BTW, this is useful as a generalized intrepreter for the C# if my initial question is correct.
Hi Sam,
REFLECTScript is using its own syntax, it is not possible to execute valid C# code.
Pls have a look to the short documentation about its syntax.
The files section contains a zip file with a chm for a brief overview about
the builtin commands like loops, conditions, etc.
Unfortunalty I didn't find any time to complete the documentation yet.
Examples:
By using the BaseObjects (Hashtable) Add method of an Interpreter instance you can
pass references into the interpreter context from inside your own app,
e.g.
-----
myInterpreter.BaseObjects.Add("obj",myObj);
myInterpreter.Execute("myObj.anyMeth param1;");
-----
By using the methods of the Command object from inside the Interpreter you
can instance objects from script.
e.g.
------
myInterpreter.Execute("object.define myobj strval;")
myInterpreter.Execute("object.define myobj2 strval2;")
myInterpreter.Execute("myobj.concat strval2;")
------
Using the Object command methods, see chm, you can instance objects from
any custom assembly also.
Sorry for the missing examples. If you want to discuss the functionality try ISQ, you can reach me at #311933588
Regards,
Johannes