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

Blocks do not terminate

Open martinpetrovaj opened this issue 5 years ago • 0 comments

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

martinpetrovaj avatar Oct 16 '20 23:10 martinpetrovaj