Closed DylanSp closed 3 years ago
Started work on this by reworking readString()
to work correctly when reading from a non-TTY. This necessitated some refactoring so that native function implementations could be injected instead of hardcoding their definitions in evaluator.ts
.
Fixed by #85.
Modules:
node dist/main.js examples/modules/basic_module.wheel examples/modules/consumer.wheel
-> Successful eval, result 1node dist/main.js examples/modules/side_effecting_module.wheel examples/modules/side_effecting_consumer.wheel
-> Successful eval, logs 0, 1, 2node dist/main.js examples/modules/circular_a.wheel examples/modules/circular_b.wheel examples/modules/circular_consumer.wheel
-> Circular dependencies detected