quarkiverse / quarkus-bon-jova-rockstar

An implementation of Rockstar as a JVM language
https://codewithrockstar.com/
3 stars 2 forks source link

Give back (return) at end of function should not need a blank line to end earlier loops #154

Closed holly-cummins closed 4 months ago

holly-cummins commented 4 months ago

This is a significant functional difference to Satriani. In our Mandelbrot, a newline is needed before Give the answer or the program hangs (or prints an error). In Satriani, it's the reverse.

I've added a reproducer test, shouldCountReturnsAsTheEndOfALoop