Thursday, October 22, 2020

SSTNPL v0.4 - Major New Features!

SSTNPL for the longest time has been limited to its goto+label system, and its stack-based subroutine system, when it comes to controling code flow... 




not anymore...

If, for, and while: SSTNPL Code Blocks are HERE!


 Yes. That code in the screenshot, on the left? Thats real SSTNPL code.

SSTNPL now features nestable:

  • new `block` conditional mode, allowing any conditional to create code blocks
  • for loops!
  • while/until loops!
  • new conditional 'break' mode & non-conditional 'break' statements, for breaking out of loops, and skipping to the end of blocks.
  • new `end` statement, which defines the ends of each block.
  • blocks can be nested.
  • you can even use blocks inside subroutines!

Helpful Links:

SSTNPL Documentation (which has been updated with information on the new features.)

Flow control Test 1

Flow control Test 2


No comments:

Post a Comment