Move meta and random to "aux" modules.

Wren now has three classes of modules:

- The one magic "core" module that's built in and always needed.
- Auxiliary libraries like "meta" and "random". These do not have any
  dependencies, so can be used even when you embed Wren inside an
  application. But they're also optional and can be disabled if you
  don't need them.
- CLI modules. These ones need libuv and are tied to the CLI wrapper
  around the VM.
This commit is contained in:
Bob Nystrom
2015-10-17 22:09:48 -07:00
parent 3ca480cbf4
commit e5176607d9
15 changed files with 264 additions and 167 deletions

View File

@ -42,6 +42,8 @@ def main():
wren_source_lines = f.readlines()
module = os.path.splitext(os.path.basename(args.input))[0]
module = module.replace("wren_aux_", "")
c_source = wren_to_c_string(args.input, wren_source_lines, module)
with open(args.output, "w") as f: