Open eignnx opened 8 months ago
Get the greetings.rellog
example working:
# greetings.rellog
[[imports
- hello::[hello_world]
- goodbye
]]
[[submodules
- hello
- goodbye
]]
[main]
- [hello_world]
- goodbye::[goodbye_world]
# hello.rellog
[[exports [HelloWorld]]]
[hello_world]
- [io_writeln "Hello, world!"][stream stdout]
[hidden]
- [io_writeln "Uh-oh! This should be private to module `hello`!"][stream stdout]
# goodbye.rellog
[[exports [GoodbyeWorld]]]
[goodbye_world]
- [io_writeln "Goodbye, world!"][stream stdout]
Works toward #23.
Basically copy-paste Rust's module system into Rellog.
Goal
Get this example working:
See full example here