DOCS/LANGUAGE/NATIVE SYNTAX

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.

STYLEEXPLICIT BLOCKSTYPINGDYNAMICBRACESNONE
03.1

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.

OPENif ready:
BODYprint("Run")
CLOSEblock
Formatting stays a presentation choice.

The explicit terminator makes scope readable when native Block logic sits beside languages with different formatting conventions.

03.2

Variables

Variables are implicitly typed and declared by assignment.

variables.blk
name = "Ada"
age = 27
active = true
scores = [98, 91, 95]
Names

Begin with a letter or underscore; continue with letters, numbers or underscores.

Values

Use scalars and compatible structures that can cross the runtimes in your workflow.

03.3

Conditions

Use if, elif and else for branching.

conditions.blk
if score >= 90:
    grade = "A"
elif score >= 80:
    grade = "B"
else:
    grade = "Review"
block
03.4

Loops

A while loop follows the same explicit termination model.

loop.blk
counter = 0

while counter < 4:
    print(counter)
    counter = counter + 1
block
03.5

Functions

Use func to group small pieces of native orchestration logic.

functions.blk
func calculateTax(amount):
    rate = 0.05
    return amount * rate
block

tax = calculateTax(1200)
Keep the native layer focused.

Use Block syntax for orchestration. Move library-heavy or domain-specific computation into the language block designed for it.