lune-org / lune

A standalone Luau runtime
https://lune-org.github.io/docs
Mozilla Public License 2.0
344 stars 80 forks source link

Allow for fetching "context" declarations #92

Open CompeyDev opened 1 year ago

CompeyDev commented 1 year ago

Now that lune has a proper TaskScheduler, the only thing preventing me from including REPL features such as declaration preview is the inability to get declarations (functions, variables, etc.) from the Luau stack.

Once implemented, do let me know.

CompeyDev commented 4 months ago

@filiptibell Any updates on this? The REPL is a bit too minimal ATM, it would be nice to have this so that I can PR an update to it which allows for evaluation previews.

filiptibell commented 4 months ago

Any updates on this?

Everything to make this work exists now with the new scheduler, but we need to start returning some more structured data from Runtime::run instead of just ExitCode. It's a breaking change for anyone using the library so it will have to be bundled into lune 0.9.0 with other breaking changes

CompeyDev commented 4 months ago

Perfect, in that case I can PR this in to close #175 and later create another PR for implementing this.