diff --git a/test/blocks.hi b/test/blocks.hi new file mode 100644 index 0000000..432acb1 --- /dev/null +++ b/test/blocks.hi @@ -0,0 +1,13 @@ +// Test: Block as a data structure (object) +config: { + version: "1.0" + author: "Master" +} +_("Config version:", config.version) + +// Test: Block as an executable function (with params and implicit return) +add: (a, b) { + a + b +} +result: add(5, 10) +_("Function result:", result)