kyren / piccolo

An experimental stackless Lua VM implemented in pure Rust
Creative Commons Zero v1.0 Universal
1.67k stars 62 forks source link

Local attributes #52

Open Jengamon opened 5 months ago

Jengamon commented 5 months ago

Right now, this only accepts the local attributes, but doesn't do anything with them. As is, this would lead to incorrect behavior, as const and close change some of the mechanics of how assignments work/are allowed, while any other values should be rejected.

Goals

Jengamon commented 5 months ago

In the tests/goldenfile.rs you will see a module collected_print which is a clone of the print from the io implementation except it collects the output to throw it in a channel. I think this might raise the question of how to handle the io module.