Wren is a small, fast, class-based concurrent scripting language.
wren-port
is a port of the Wren programming language implementation to D, intended for embedding. This is useful is you want a nothrow @nogc
fast interpreter in your D application.
The original Wren implementation is here.
System.isDebugBuild
allows to know if the -debug flag was used to build Wren, in case you want to disable some sort of live-scripting at release.
1.0f
, 2L
and 2.0F
are valid Wren double literals in this fork.
This helps sharing bits of code between D and Wren.
The new $
operator is calling a host-provided function.
This allow to query entities with a nice syntax.
Example:
($"_imageKnob").hasTrail = false
This feature can be enabled in WrenConfiguration
(default = disabled).
config.acceptsTrailingSemicolons = true;
When enabled, imports, statements, and variable declarations MAY end with a single trailing semicolon.
var a = 2; // VAR-DECL [;]
a = 7; // STATEMENT [;]
import "beverages"; // IMPORT STRING [;]
import "beverages" for Coffee, Tea;
This help porting between D and Wren in practice.
This translation was performed by int3 Systems and sponsored by Auburn Sounds.