rigz_runtime 0.5.0

Handles parsing and converting rigz to its VM instructions (for syntax highlighting use tree-sitter-rigz instead)
Documentation
use rigz_ast::*;
use rigz_ast_derive::derive_module;

derive_module! {
    r#"
trait Log
    # `log :level, template, args` is built in but doesn't support identifiers yet

    fn info(template: String, var args) -> None
        log :info, template, args
    end

    fn warn(template: String, var args) -> None
        log :warn, template, args
    end

    fn trace(template: String, var args) -> None
        log :info, template, args
    end

    fn debug(template: String, var args) -> None
        log :debug, template, args
    end

    fn error(template: String, var args) -> None
      log :error, template, args
    end
end
"#
}

impl RigzLog for LogModule {}