An interpreted language written in Go
This release updates our examples to include demonstration of new features.
New features in this release include:
pragma
built-in command.
pragma("strict");
, but this might change in the future.match()
function.
$
symbol, which should be familiar to shell-users.This release updates the parser to add some new features:
<=
and >=
may be used as comparison/boolean functions.**
is a POW operator (2 ** 3 => 8).The backtick operator returns NULL on failure, otherwise a hash with two keys:
stdout
stderr
The backtick operator is demonstrated in examples/exec.mon
We've also added support for writing to files, and STDOUT/STDERR via the new standard-library function write
.
The standard-library was also updated to include support for reading directory-contents via the function directory.glob
, as demonstrated in examples/glob.mon
Finally it is now possible to return an array of hash-keys via the new standard library function keys
- which is demonstrated in examples/hash.mon
This is a bug-fix release primarily affecting multibyte characters.
len("狐犬") -> 2
"狐犬"[0] -> "狐"
"狐犬"[1] -> "犬"
This is the initial binary release of monkey, future releases will have a useful changelog.