Skip to content

release-0.3

Compare
Choose a tag to compare
@skx skx released this 20 Jun 07:53
· 347 commits to master since this release

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).
  • ` is a backtick operator allowing command execution.

The backtick operator returns NULL on failure, otherwise a hash with two keys:

  • stdout
    • The output hte command produced on STDOUT.
  • stderr
    • The output the command produced on 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