Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulator throws errors on multidimensional arrays #25

Open
spencerkee opened this issue Feb 4, 2021 · 1 comment
Open

Simulator throws errors on multidimensional arrays #25

spencerkee opened this issue Feb 4, 2021 · 1 comment

Comments

@spencerkee
Copy link

A program including: byte lastElements[3][2] = {{99,99},{99,99},{99,99}}; throws the error: SyntaxError: missing : after property id

@xyfeng
Copy link
Collaborator

xyfeng commented Feb 21, 2021

Did you try to declare the array first then assign values? The regex code for multi arrays is very fragile, I should have left some notes there. For now, take look at the puzzle 101 code, there are examples of 2 dim array that works.

@spencerkee spencerkee changed the title Simulator throws errors on multidimsenionsal arrays Simulator throws errors on multidimensional arrays Nov 15, 2021
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

No branches or pull requests

2 participants