Added module and import support #6
Merged
prologic
merged 3 commits from module_import_support
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'module_import_support'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Fixes #4
Example:
With a module called
foo.monkey
in the current directory:The following snippet works in the evalulator:
TODO:
MONKEYPATH
search path(s).Codecov Report
76.47% <ø> (ø)
0% <0%> (ø)
9.14% <0%> (-0.5%)
0% <0%> (ø)
100% <100%> (ø)
79.2% <60%> (-0.61%)
73.69% <66.66%> (-0.67%)
74.63% <71.42%> (-0.06%)
74.65% <72.85%> (+1.69%)
Continue to review full report at Codecov.
This is almost working aside from two bugs:
The following snippets (defined in a module) do not work:
This causes the VM to crash because the code currently doesn't take into account referenced constants or globals in the module. I'm not yet sure how to resolve this.
Example crashes:
Globals:
Closures:
And 0cf0f30 fixes this
c09707eec4
.