DianaScript
Features
DianaScript is a minimal programming language that aims at interfacing with .NET runtime, especially for game developement in Unity.
- No
System.Reflection
. - Limited APIs provided by the developers. Safe to game users.
- C#-friendly interops.
- Python-like object system
Usage
AIR Parser
var parser = new DianaScript.Parser("xxx.ran");
var code = parser.ReadCode()
VM
var code = ... // maybe parsed from file using DianaScript.Parser;
var vm = new DianaScript.VM();
vm.Run(code);
An exception will get raised to .NET side if it is not handled in DianaScript/DVM.
The exception type is compatible to both runtime.