Basic import syntax.

This commit is contained in:
Bob Nystrom
2015-02-14 16:46:00 -08:00
parent bc5a793c41
commit a44d479643
16 changed files with 74 additions and 27 deletions
@@ -1,5 +1,6 @@
var Module = "module".import_("Module")
var Other = "module".import_("Other")
// TODO: Use comma-separated list.
import "module" for Module
import "module" for Other
IO.print(Module) // expect: before
@@ -10,5 +11,3 @@ IO.print(Module) // expect: before
// But it does change there.
Other.show // expect: after
// TODO: Cyclic import.