keyword
entry
entry { … }
entry declares the program's entry point: a single block that runs once when the program starts, in order, and then the program exits. It is the counterpart to the ECS game loop — where a game is built from handlers driven by phases each frame, an entry program is a straight-line script, which is why the compiler and tools in this repo are written with it. Use it for command-line programs and one-shot tools; use program with handlers for interactive games.
Example
program Greet {
entry {
print("hello")
print(2 + 2)
}
}