Files
wren/src
Bob Nystrom fe143644b3 Rationalize string lengths.
The .count getter on string returns the number of code points. That's
O(n), but it's consistent with the rest of the main string API.

If you want the number of bytes, it's "string".bytes.count.

Updated the docs.

Fixes 68. Woo!
2015-09-11 21:33:26 -07:00
..
2015-08-28 23:13:56 -07:00
2015-08-31 21:56:21 -07:00
2015-09-11 21:33:26 -07:00

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

  • 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.