yyyyyyyan / rockstar-py

Python transpiler for the esoteric language Rockstar
MIT License
94 stars 26 forks source link

Blocks do not terminate #41

Open martinpetrovaj opened 3 years ago

martinpetrovaj commented 3 years ago

It seems that code blocks (function body, loop, condition body etc) are not terminated after a blank line.

Example:

While X is greater than 1
Say X

If X is greater than 1
Say X

Transpiles into:

while X > 1:
    print(X)

    if X > 1:
        print(X)

Correct output should be along the lines of:

while X > 1:
    print(X)

if X > 1:
    print(X)

See specification