A Nim wrapper for Wren, an embedded scripting language.
This package uses nimgen and c2nim to generate the wrapper code.
This package is distributed on nimble: nimble install wren
A simple usage example looks like this:
in hello_world.nim:
import wren
let vm = defaultConfig().newVM()
vm.runScript("example.wren")
in example.wren:
System.print("Hello world!")
> nim c -r hello_world.nim`
> Hello world!
For more example usage refer to the examples
folder of this repository.
- Tests
- API documentation
This package is a work in progress and any feedback or suggestions are welcome. It is hosted on GitHub with an MIT license so issues, forks and PRs are most appreciated.