Files
transpiler/test/blocks.hi

14 lines
278 B
Plaintext

// 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)