Chapter 03
Small syntax.
Clear intent.
Block's native layer is intentionally compact. It handles orchestration values and simple control flow while embedded runtimes handle specialized work.
No braces. No indentation rules.
Control structures open with a colon and close with the keyword block. Indentation is encouraged for readability but is not used to determine scope.
if ready:print("Run")blockThe explicit terminator makes scope readable when native Block logic sits beside languages with different formatting conventions.
Variables
Variables are implicitly typed and declared by assignment.
name = "Ada"
age = 27
active = true
scores = [98, 91, 95]Begin with a letter or underscore; continue with letters, numbers or underscores.
Use scalars and compatible structures that can cross the runtimes in your workflow.
Conditions
Use if, elif and else for branching.
if score >= 90:
grade = "A"
elif score >= 80:
grade = "B"
else:
grade = "Review"
blockLoops
A while loop follows the same explicit termination model.
counter = 0
while counter < 4:
print(counter)
counter = counter + 1
blockFunctions
Use func to group small pieces of native orchestration logic.
func calculateTax(amount):
rate = 0.05
return amount * rate
block
tax = calculateTax(1200)Use Block syntax for orchestration. Move library-heavy or domain-specific computation into the language block designed for it.