No description
Find a file
2019-01-18 12:50:25 +00:00
examples fix typo 2019-01-04 21:48:24 +00:00
src Remove unneeded comments and fix ospaths deprecation warning 2019-01-05 13:37:32 +00:00
.gitignore Switched to nimgen 2019-01-04 21:49:52 +00:00
LICENSE Create LICENSE 2018-12-18 15:03:35 +00:00
readme.md remove in progress for nimble 2019-01-05 14:50:26 +00:00
wren.cfg nimgen cfg file 2019-01-04 21:50:36 +00:00
wren.nimble Lower required nim version 2019-01-18 12:50:25 +00:00

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.