Skip to content

Exception support#16

Draft
iBicha wants to merge 18 commits into
MotleyCoderDev:mainfrom
iBicha:feature/exception-support
Draft

Exception support#16
iBicha wants to merge 18 commits into
MotleyCoderDev:mainfrom
iBicha:feature/exception-support

Conversation

@iBicha
Copy link
Copy Markdown
Contributor

@iBicha iBicha commented Jul 30, 2025

Exception support - depends on #15 and closes #12
See diff iBicha/wasm2brs@feature/remove-submodules...iBicha:wasm2brs:feature/exception-support

Added expressions needed to support exceptions
The basic exception tests are now passing.
The big hurdle that is left: We can't define labels inside a Try block. That causes a Brightscript compilation error.

So now we need to figure out how to avoid labels inside try blocks.
Perhaps:

  • Using a sort of state machine?
  • Or transforming labels into other control flow statements (loops, etc)?
  • Try to transform the wasm module before we pass it to wasm2brs?

I still don't know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception support

1 participant