rokucommunity / rokucommunity/brighterscript
Missing syntax error for string literal divided by string literal
Open
Nobody has claimed this yet.
bug
parser
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
LogError("GlobalEvent eventName = \"\"")
Should produce an error because brightscript doesn't have string escaping, and this is technically stringLiteral divided by stringLiteral.
This type of string will result in a runtime crash. Here is an example:
Type Mismatch. (runtime error &h18) in pkg:/source/tests/Common.brs(2)
1955: print "GlobalEvent eventName = \"\""
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with the provided LogError example and confirm the runtime failure. Trace how string literals and division are parsed or validated, then ensure this input produces a syntax error instead; done means the invalid expression is rejected before runtime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100