New
Added the until
loop (inverse of while
loop).
Added support for overloading the operators on switch
case
statements with the syntax case [op] <val>
.
Added user defined properties.
Added constructors for builtin Types
module. Can do str = string (45);
, etc.
Added global eval
function for compiling a source string to a module
object.
Added global function help
for displaying helpdocs to the screen for a func
or class
.
Added global functions for getting docstring data, getdocdesc
, getdocoptparams
, getdocparams
, and getdocreturns
.
Added support for docstrings with the following format:
# @desc Class containing the test method.
# @returns MyClass
class MyClass {
# @desc Constructs a new MyClass and returns it.
# @returns The new MyClass object.
func new () {
}
# @desc Prints the given messages to the screen.
# @param msg The first additional message.
# @optional params msgs The other messages to print.
# @returns null.
func test (msg, params msgs) {
println (msg);
foreach (msg_ in msgs) {
println (msg_);
}
}
}
Fixed
Major memory leak with expression statements.
REPL weirdness.