This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Repository navigation
release-0.3
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.
- Example of writing to a file examples/file-writing.mon
- Example of writing explicitly to STDOUT or STDERR examples/stdout-stderr.mon
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