examples/module-loading/02_demo_with_as.cat
# Demo script using custom namespace name
# Run with: catnip -f ./examples/host_module_example.py:host examples/demo_with_as.cat
# Use host module functions via custom namespace (host.function())
x = host.add(10, 5)
y = host.multiply(x, 2)
z = host.power(2, 8)
# Call greet function
message = host.greet("Catnip")
# Use Counter class
counter = host.Counter(100)
# Final result
z