Releases: sjbarag/brs
BRS 0.5.0
The following control flow constructs are now supported in .brs
files:
- Block
if/elseif/else
statements - Single-line
if/elseif/else
statements while
loopsfor/to
loops
In addition, brs
now has end-to-end tests, meaning that a series of real BrightScript files get executed during every test pass. These should make regressions much easier to avoid in the future, and can lead to easy test-case production. Who knows, maybe we'll even get a fuzzer in there one day!
BRS 0.4.0
BRS 0.3.0
In 0.3.0, BRS learns the print
statement! Executing a file is actually useful now:
$ cat test.brs
print """The horse says, 'Doctorate denied'."" -- Professor Shpeekenshpell, Futurama S6 E8"
$ brs test.brs
"\"The horse says, 'Doctorate denied'.\" -- Professor Shpeekenshpell, Futurama S6 E8"
There's some obvious printing quirks (namely that I'm lazy and using JSON.stringify
to print strings), but those will be fixed in the next release.
BRS 0.2.1
BRS 0.2.0
BRS 0.2.0 adds an interpreter, meaning the language is finally actually doing something! It supports:
- Arithmetic:
- Addition
- Subtraction
- Multiplication
- Division
- Integer division
- Modulo operations
- Exponentiation
- Parenthetic grouping
- Boolean logic:
- And/or/not of booleans
- Comparisons
- Less-than, less-than-or-equal, greater-than, greater-than-or-equal, equal, and non-equal
The REPL works pretty well, but because there's no print
statement yet executing a file doesn't actually produce anything.
BRS 0.1.0
Initial release of BRS that lexes and parses simple expressions written in BrightScript.
Is this sort of a name squatting situation? Yeah I guess. But now https://www.npmjs.com/package/brs isn't available.