rokucommunity / rokucommunity/brighterscript

DIM statement is not supported

Open
#60 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

parser
Dominant language
TypeScript
Stars
208
Forks
68
Avg merge
8h 39m
Merged PRs (30d)
39

Description

For the following example:

sub doSomething()
    Dim c[5, 4, 6] 
    For x = 1 To 5
        For y = 1 To 4
            For z = 1 To 6
                c[x, y, z] = k
                k = k + 1
            End for
        End for
    End for 
end sub 

Taken from Roku documentation found: here

the Dim statement is flagged as error 1081 ("Found enexpected token 'Dim'") and appears to be unsupported.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the BrightScript example from the issue and confirm error 1081 occurs at the Dim statement. Trace the parser/compiler entry point that rejects Dim, then verify that the multidimensional declaration and subsequent indexing compile without that error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.