Quick syntax reference for ProXPL.
let x = 42; // Mutable
const PI = 3.14; // Immutable
let count: int = 0; // With type annotationif (condition) { } else { }
while (condition) { }
for (let i = 0; i < 10; i++) { }
switch (val) { case 1: ... default: ... }
break; continue;func name(params) { body }
async func asyncName(params) { body }class Name {
func method() { }
}
class Child extends Parent { }intent Name(params);
resolver Name matches Intent { }context Name {
layer Name { func ... }
}
activate ContextName { ... }use std.module;
import ... from ...;try { } catch (e) { } finally { }Status: Stable See Also: Specification, Built-in Functions