Script language engine for .Net programs
be designed for inclusion in applications that require a built-in, easy to use,
scalable script language with no dependencies other language like C/C++.
The following features are available:
stricter syntax check and own additional syntax, function and object in order to
enhance usability of data exchange. For detailed information please check Incompatibility
ReoScript provides a simple script Editor it can be used to write and execute script
directly. The Editor can also be included in application and provided to end-user.
Execute ReoScript directly
To make your first ReoScript and see 'hello world' be printed. Just start ReoScript
Editor by executing ReoScriptEditor.exe and input the following code, then choose
menu 'Script' -> 'Run' (or press F5). The 'hello world' will be printed in console.
As you watched the code to print 'hello world' has been already prepared when editor
starting up. Editor may has a default content to load and display in initializing.
To give your Editor a customize default script please see How to integrate script
editor in application.
Execute ReoScript by programming
To use ReoScript in your application, the following assemblies need be referenced.
And following namespace should be imported in code file.
Now you can use ScriptRunningMachine to execute script, call Run method and
pass script string as argument.
ScriptRunningMachine srm = new ScriptRunningMachine();
Note that last semicolon in ReoScript is required, ignore it will cause a runtime
exception to be thrown. Here is Simplest Application that shows how to use ReoScript
saying 'hello world!' in .Net program.
- Semicolon Check - Except statement block (non-anonymous function, if, for, switch and etc.), all sentences in ReoScript should ends with a semicolon.
The following softwares may be included in this product:
ReoScript and ReoScript Editor released under GNU Lesser General Public License