Keywords
Reserved words and reserved route names in public Cambrian programs:
| Keyword / name | Use |
|---|---|
entity | Declare an entity |
extern | extern entity foreign surface |
routes / route | Route block / extern route stub |
view / init / private / accept | Route modifiers |
pure | Route modifier or start of pure fn |
receive / fallback | Reserved route names on EVM (Receive and Fallback) |
where / from / throw | Preconditions / sender check / failure |
return | Return from a route |
call | Invoke a private route from an action list |
deploy | Deploy another entity |
emit | Emit an event |
event / error | Declarations |
library / using / for | Libraries, using Lib for T, expression/action for |
pure fn | Top-level pure function |
const / type / record / enum | Declarations |
macro | Entity macros (@name()) |
match / if / else | Control flow |
let / var | Bindings (var for capturing ~> returns) |
in | Member transforms; bounds in bound x in lo..hi |
some / none | Option constructors |
test / property / fuzz / invariant | Testing |
expect / assume / bound / check / action / with / ctx | Test / invariant vocabulary |
import / use | File import (import "./…" or bare import "token/core.cam") / namespace (use …) |
indexed | Event parameter indexing (EVM) |
identity | Identity member marker |
skip | Test modifier (skip from) or invariant guard |
Operators such as ~>, ^, =>, &&, ||, +% are listed under
Operator Precedence.
TVM-only syntax (rescue, recover, gosh::, …) is intentionally omitted
from this public reference.