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()
anderror()
have been added to aid error-handling.
Changes
eof()
andget()
have been removed as built-in functions.!read([f,]0)
can be used in place ofeof([f])
read([n])
is identical toget([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