Skip to content

BRS 0.8.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@sjbarag sjbarag released this 24 May 16:32
· 587 commits to main since this release

Version 0.8 of brs introduces a single — but extremely useful — feature: print lists! Instead of having to write several print statements on multiple lines (which in turn creates multiple output lines), brs users can now print the results of multiple expressions with a single line of code. For example, this is now valid:

' no separators
print "lorem " 1 "psum"

' arbitrary mixes of separators
print 9; " is equal to"; 3^2
print "column a", "column b", "column c", "column d"

' arbitrary tabbing
print tab(3) "I started at col 3"; tab(25) "I started at col 25"

' print position
print "0123" pos(0)

' calculate tabs based on position, though you'd probably want to just define "    " as a variable
print "lorem" tab(pos(0) + 4) "ipsum" tab(pos(0) + 4) "dolor" tab(pos(0) + 4) "sit" tab(pos(0) + 4) "amet"

' suppress trailing newline
print "no newline";