Files
wren/src
Josh Goebel c1b97522dd fix: escape backslashes in embedded Wren source strings for C compilation
Add `line.replace("\\", "\\\\")` to the `wren_to_c_string.py` script so that backslashes in Wren source code (e.g., `\n`, `\r`, `\x1b`) are properly escaped when embedded as C string literals. This fixes incorrect escape sequences in `io.wren.inc` and `repl.wren.inc` that caused runtime failures when reading line separators and rendering REPL output.
2021-05-21 23:09:05 +00: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 executable that embeds the VM in itself. Code here handles reading command-line, running the REPL, loading modules from disc, etc.

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