DianaScript

Features

DianaScript is a minimal programming language that aims at interfacing with .NET runtime, especially for game developement in Unity.

  1. No System.Reflection.
  2. Limited APIs provided by the developers. Safe to game users.
  3. C#-friendly interops.
  4. 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.

GitHub

https://github.com/thautwarm/DianaScript