Skip to content

0.3.6

Latest
Compare
Choose a tag to compare
@darrylabbate darrylabbate released this 18 Nov 06:18
· 50 commits to master since this release
0.3.6
238a0e4

New Features

  • read() now accepts an optional string parameter which serves as the "mode" for the file read operation. "A" or "a" will read the entire file, while "L" or "l" will read a single line (default).
  • Built-in functions assert() and error() have been added to aid error-handling.

Changes

  • eof() and get() have been removed as built-in functions.
    • !read([f,]0) can be used in place of eof([f])
    • read([n]) is identical to get([n])

Fixes

  • Fixed a bug where strings would not be coerced to numbers during table lookups
  • Fixed an issue where the parser could signal the codegen to reserve stack space for local variables more than once
  • Fixed a bug that prevented hexadecimal escape sequences from being lexed correctly
  • Fixed a bug where the VM would interpret the operands of OP_IMM16 as signed instead of unsigned

Full Changelog: 0.3.5...0.3.6