Getting started
Create, check, run and test your first ZBL project.
With the matching Zebvix CLI installed, run zebvix new hello and enter the hello directory. Run zebvix check, then zebvix run --engine interpreter. Run zebvix test for the generated tests.
Compare with zebvix run --engine bytecode. The included easy example introduces tasks, bindings and iteration after the first generated project.
easy
examples/easy/src/main.zbl · v0.5.0-preview.5 · interpreter, bytecode
needs console
name = "Zebvix"
task welcome(user: text):
show "Welcome " + user
welcome(name)
total = 0
repeat value in [10, 20, 30]:
total = total + value
show total
task test_total():
assert(1 + 2 * 3 == 7)
Welcome Zebvix
60