• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rokucommunity / brs / #29
86%

Build:
DEFAULT BRANCH: master
Ran 01 Dec 2023 01:11PM UTC
Jobs 1
Files 97
Run time 22s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Dec 2023 01:09PM UTC coverage: 91.51% (+0.02%) from 91.487%
#29

push

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

* feat(lex): Emit try/catch/throw lexemes for parsing

RBI 9.4 adds support for error handling via the `try`/`catch` model [1].
Interestingly, `try`, `catch`, and `endtry` are all valid identifiers!
That makes parsing a little bit tougher, but it's not unprecedented in
this language.  Detect `try`/`catch`/throw`/`end try` during lexing and
emit the proper lexemes.

[1] https://developer.roku.com/docs/references/brightscript/language/error-handling.html
see #554

* feat(parse): Consume try, catch, and end try lexemes

Throwing exceptions and catching them aren't yet supported in `brs`, so
executing only the `try` block seems to be a reasonable "bare minimum"
approach to try/catch support.  Handle `try`, `catch`, and `end try`
lexemes in the parser, emitting TryCatch statements for the interpreter
to execute naïvely.

see #554

* Fixed Test Case

---------

Co-authored-by: Sean Barag <sean.barag@hulu.com>
Co-authored-by: Bronley Plumb <bronley@gmail.com>

1776 of 2069 branches covered (0.0%)

Branch coverage included in aggregate %.

28 of 29 new or added lines in 5 files covered. (96.55%)

5262 of 5622 relevant lines covered (93.6%)

8963.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.28
-0.45% src/coverage/FileCoverage.ts
Jobs
ID Job ID Ran Files Coverage
1 #29.1 01 Dec 2023 01:11PM UTC 97
91.51
Source Files on build #29
  • Tree
  • List 97
  • Changed 96
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b8e459af on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc