rockstar-py icon indicating copy to clipboard operation
rockstar-py copied to clipboard

Compound assignment support

Open martinpetrovaj opened this issue 5 years ago • 3 comments

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

martinpetrovaj avatar Oct 16 '20 22:10 martinpetrovaj

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.

yyyyyyyan avatar Oct 16 '20 22:10 yyyyyyyan

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.

martinpetrovaj avatar Oct 16 '20 23:10 martinpetrovaj

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.

yyyyyyyan avatar Oct 17 '20 19:10 yyyyyyyan