Skip to content

v1.1.1

Compare
Choose a tag to compare
@milochristiansen milochristiansen released this 24 Jan 23:25
· 46 commits to master since this release

1.1.1

More script tests, more compiler bugs fixed. Same song, different verse.

  • Added another set of script tests. (script_test.go)
  • Fixed unary operators after a power operator, for example 2 ^ - -2. To fix this issue I totally rewrote how operators
    are parsed. (ast/parse_expr.go)
  • Fixed semicolons immediately after a return statement. (ast/parse.go)
  • Fixed an improper optimization or repeat-until loops. Basically if the loop had a constant for the loop condition its
    sense was being reversed (so a false condition resulted in the loop being compiled as a simple block, and a true condition
    resulted in an infinite loop). (compile.go)
  • Fixed and in non-boolean contexts. Also and and or may produce slightly better code now. (compile_expr.go)