|
spudplate
Template scaffolding compiler for spudlang .spud files
|
An if statement - executes its body when the condition is true.
More...
#include <ast.h>
An if statement - executes its body when the condition is true.
Example:
Mirrors repeat structurally: a condition expression, a body, and an end terminator. There is no else or else if; gating gating composes via nested if blocks. let and as declared inside the body are local; the usual no-shadowing rule applies. Inner statements may carry their own when clause; an if block does NOT itself accept a when clause.