Introduce a path type classification system (absolute, relative, simple) to distinguish logical imports from relative ones. Implement automatic discovery of a "wren_modules" directory by walking up from the root directory. Refactor the CLI to return interpret results and exit codes instead of exiting directly. Extract cross-platform stat macros into a shared header. Update test API calls to use explicit relative paths.
7 lines
171 B
Plaintext
7 lines
171 B
Plaintext
// Import a module from within a named package.
|
|
import "foo/within_foo" for Foo
|
|
// expect: ran foo module
|
|
// expect: ran bar module
|
|
|
|
System.print(Foo) // expect: from foo
|