You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignment operators do not work when used against an object property. Here is a test file that compiles and runs on Roku, but produces parse errors in brs.
The text was updated successfully, but these errors were encountered:
sjbarag
added
bug
Any difference between this BrightScript implementation and RBI, or otherwise unexpected behavior
parser
Affects this project's token parser
labels
Feb 26, 2019
Due to the fact that the `=` token is ambiguous without context (i.e.
"is it an assignment or comparison?"), assignments get parsed as binary
operations and transformed into assignments after the binary operation's
been completely parsed. Dotted and indexed "set" statements (e.g.
`foo.bar = "baz"`) required a bit of additional parsing logic when they
were added. Since assignment operators like `+=` are unambiguously used
in statements only, there was yet more parsing logic required to handle
assignment operators when the left-hand side is a dotted or indexed set.
This should take care of it though!
fixes#173
Assignment operators do not work when used against an object property. Here is a test file that compiles and runs on Roku, but produces parse errors in
brs
.Source
The text was updated successfully, but these errors were encountered: