sjbarag / brs

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

Add support for try/catch #554

Open sjbarag opened 4 years ago

sjbarag commented 4 years ago

The Reference BrightScript Implementation (RBI) added support for try/catch/throw in version 9.4! https://developer.roku.com/docs/references/brightscript/language/error-handling.md

We should do the same. This work will involve the lexer, parser, and interpreter, and may require some extra changes in the standard library to accommodate.