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

Compound assignment support #39

Open
martinpetrovaj opened this issue Oct 16, 2020 · 3 comments
Open

Compound assignment support #39

martinpetrovaj opened this issue Oct 16, 2020 · 3 comments
Labels
bug Something isn't working

Comments

@martinpetrovaj
Copy link

Hi, there seems to be an issue with transpiling compound assignments:

X is 1
Let X be with 1
Say X

transpiles into

X = 1
X = + 1
print(X)

and prints 1.

Correct behaviour would be to transpile the second line into X += 1, making the final X value 2.

See specification

@yyyyyyyan yyyyyyyan added the bug Something isn't working label Oct 16, 2020
@yyyyyyyan
Copy link
Owner

Thank you very much for your issues! I'm planning on fixing everything soon. If you're willing to help more, it' be awesome to have more issues about yet non-implemented features. I created rockstar-py right when rockstar itself was starting, so there're quite a few features I haven't caught up yet.

@martinpetrovaj
Copy link
Author

Sure, I will try to find some new features with the most value and create separate issues for them over the weekend.

It seems you really enjoy expanding your project with new features. It is exciting to see what is included in rockstar-py even now and what we can do with it. But without solid foundation it will be hard to create new fun Rockstar programs, no matter how many features from the specs are implemented here.

Hopefully I will be able to get some time off soon and help out with a few of those nasty bugs.

@yyyyyyyan
Copy link
Owner

What you call bugs are really features, that's what I'm trying to tell you. The specs were not ready when I implemented rockstar-py. A lot was decided and changed after I was done developing the transpiler, and now these come out as bugs. We'll fix everything soon. It's just not my priority right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants