Files
wren/src
Bob Nystrom 78655c68b0 Simple string interpolation.
This allows "%(...)" inside a string literal to interpolate the
stringified result of an expression.

It doesn't support custom interpolators or format strings, but we can
consider extending that later.
2015-11-11 07:55:48 -08:00
..
2015-10-15 18:17:42 -07:00
2015-11-09 07:37:06 -08:00
2015-11-11 07:55:48 -08:00
2015-10-24 09:23:25 -07:00

This contains the Wren source code. It is organized like so:

  • optional: the Wren and C source code for the optional modules. These are built in to the VM and can be used even when you embed the VM in your own application. But they are also optional and can be compiled out by setting defines.

  • cli: the source code for the command line interface. This is a custom exectuable that embeds the VM in itself. Code here handles reading command-line, running the REPL, loading modules from disc, etc.

  • include: the public header directory for the VM. If you are embedding the VM in your own application, you will add this to your include path.

  • module: the source code for the built-in modules that come with the CLI. These modules are written in a mixture of C and Wren and generally use libuv to implement their underlying functionality.

  • vm: the source code for the Wren VM itself. Unlike code in cli and module, this has no dependencies on libuv. If you are embedding the VM in your own application from source, you will compile the files here into your app.