sjbarag / brs

An interpreter for the BrightScript language that runs on non-Roku platforms.
MIT License
113 stars 43 forks source link

feat(rsg): Support adding new BrsObjects at Runtime #583

Closed markwpearce closed 3 years ago

markwpearce commented 3 years ago

This is a series of changes that allow other software using BRS as a library to add new BrsComponents or Scenegraph components (PinPad, BusySpinner, etc) at Runtime.

This is useful, for example, if another piece of software wanted to implement video playback or Draw2d functionality, and then it could do so by implementing those components locally and still leverage the BRS project.

While the BRS project is very useful as a parser/lexer/interpreter, it does not do any emulation or real-world display of Scenegraph nodes. If there were another piece of software the wanted to leverage BRS, but do that display piece, then being able to override/extend the built in implementation would be a good thing.

markwpearce commented 3 years ago

I updated the PR with fixes from all your comments. Thanks for being so detailed!

markwpearce commented 3 years ago

Am I missing something? I think I did all the requested changes...