wren

A nim wrapper for Wren, an embedded scripting language


Keywords
wren, scripting, interpreter, nim
License
MIT
Install
nimble install wren

Documentation

Wren

A Nim wrapper for Wren, an embedded scripting language.

This package uses nimgen and c2nim to generate the wrapper code.

Installation

This package is distributed on nimble: nimble install wren

Usage

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.

Todo:

  • Tests
  • API documentation

Contributing

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.