rokucommunity / rokucommunity/brighterscript
Optional chaining syntax error miss
Open
Nobody has claimed this yet.
bug
help wanted
- Dominant language
- TypeScript
- Stars
- 208
- Forks
- 68
- Avg merge
- 8h 39m
- Merged PRs (30d)
- 39
Description
Roku flags standalone optional chaining function calls as syntax errors. 😢 so we should catch that in the parser.
f = { g: function() print "inner g print": return "g return value": end function }
print f?.g?() ' totally fine, prints "inner g print \n g return value"
f?.g?() ' Syntax Error
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 with the parser and reproduce the standalone optional-chaining call shown in the issue, comparing it with the call used in a print expression. The work is complete when f?.g?() is accepted without a syntax error while preserving the demonstrated function-call behavior.
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