Skip to content

Version 0.46.0

Choose a tag to compare

@danielfspencer danielfspencer released this 09 Aug 16:23
· 452 commits to master since this release

Demo Programs :

  • Update space invaders demo to a be playable prototype with a score system

Compiler:

  • Add support for global arrays
  • Add support for # key (aka 102nd key)
  • Functions must now declare the data type they return
  • Add break and continue statements for use in loops
  • Don't accept integers as boolean values
  • Warn if a function returns a value that is not used by the caller
  • Slight speed up for render_char function
  • Add option to not render spaces when calling render_char
  • Fix arrays so they can be deallocated properly
  • Require conditional statements to be given boolean values
  • Make all warning messages report the line number they belong to
  • Do not allow boolean values to be bit-shifted
  • Add *= /= %= operators
  • Allow in-line assembly to reference variables
  • Add repeat control structure
  • Make the "is odd" and "has addition overflowed" operators return boolean values only
  • Fix sys.ov not being in the reserved keywords list
  • Massive compiler refactor:

    • Use one symbol table for variables and one for functions
    • Use let instead of var to avoid issues with variable scope
    • Only use strict equality checks (=== operator)
    • Use ES5/6 syntax to make code more readable
    • Set the compiler to run in JS strict mode

Prebuilt binaries:

  • You must mark the .AppImage as executable otherwise it will not run.
  • The .deb file exposes the command blizzard-4 for starting the app.