Skip to content

release-1.2

Compare
Choose a tag to compare
@skx skx released this 01 Nov 05:13
· 234 commits to master since this release

New Features

  • We now support DATA + READ.
    • See examples/35-read-data.bas for a simple example, and the HTTP-server example for more complete version which draws an image of a skull and bones!
  • ^ can now be used to raise integers to an arbitrary power. (e.g. "2 ^ 3 => 8".)
  • We support the XOR binary & logical operator.
  • We implemented support for the definition of user-defined functions DEF FN, and calling them via FN.
  • 100% test coverage of our builtin functions!

BugFixes

  • SQR now errors, as it should, when given a negative number.
  • Our string-primitives now support UTF8 input correctly
    • LEFT$, RIGHT$, MID$, TL, and LEN.

Breaking changes:

  • The API for embedding builtins changed, again, sorry. The first argument is now an interface{}, rather than instance of the Interpreter.
    • See embed/main.go or goserver/main.go for updated usage.