rokucommunity / brs

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

feat(lex,parse): Add stub try/catch implementation #34

Closed lvcabral closed 10 months ago

lvcabral commented 10 months ago

From sjbarag/brs#611

Implementing try/catch/throw takes a good bit of work in the interpreter, so I'm splitting that into two pull requests. This one includes parsing try/catch/end try (without throw), and always executes only the try block to maintain backwards compatibility. It's a weird partial state, but the alternative is a massive pull request that can't be reasonably reviewed or understood.

see sjbarag/brs#554

Here's the feature working in action:

brs-try