quarkiverse / quarkus-bon-jova-rockstar

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

Allow return statements to (effectively) terminate statement lists #162

Closed holly-cummins closed 4 months ago

holly-cummins commented 4 months ago

Resolves #154.

The behaviour is still not identical to Satriani; now, a blank line before the 'give' will cause bad behaviour in Satriani, and work in Bon Jova. Similarly, Satriani requires a blank line before the 'give' in a loop, in Bon Jova does not.

However, the current behaviour seems consistent with the spec and unlikely to cause problems (the old requirement for a blank line meant the mandelbrot code couldn't be copy-pasted from the Rockstar samples, for example).