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
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
Mar 9, 2019
The parser was a little bit too greedy when attempting to detect set
statements, which I should have noticed with the weird workarounds in
that function. Now that we're _not_ trying to read an entire expression
as the left-hand side of a set statement (e.g. `foo + bar *= 3`), that
complication can be removed.
Arbitrarily complex expressions are now supported on the right-hand side
of a set statement, e.g. `foo.bar = true and false or 3 > 4`
fixes#156
The parser was a little bit too greedy when attempting to detect set
statements, which I should have noticed with the weird workarounds in
that function. Now that we're _not_ trying to read an entire expression
as the left-hand side of a set statement (e.g. `foo + bar *= 3`), that
complication can be removed.
Arbitrarily complex expressions are now supported on the right-hand side
of a set statement, e.g. `foo.bar = true and false or 3 > 4`
fixes#156
These lines of valid brightscript all produce parse errors:
However, wrapping each of them in parentheses removes the error.
The text was updated successfully, but these errors were encountered: