Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Keywords

Reserved words and reserved route names in public Cambrian programs:

Keyword / nameUse
entityDeclare an entity
externextern entity foreign surface
routes / routeRoute block / extern route stub
view / init / private / acceptRoute modifiers
pureRoute modifier or start of pure fn
receive / fallbackReserved route names on EVM (Receive and Fallback)
where / from / throwPreconditions / sender check / failure
returnReturn from a route
callInvoke a private route from an action list
deployDeploy another entity
emitEmit an event
event / errorDeclarations
library / using / forLibraries, using Lib for T, expression/action for
pure fnTop-level pure function
const / type / record / enumDeclarations
macroEntity macros (@name())
match / if / elseControl flow
let / varBindings (var for capturing ~> returns)
inMember transforms; bounds in bound x in lo..hi
some / noneOption constructors
test / property / fuzz / invariantTesting
expect / assume / bound / check / action / with / ctxTest / invariant vocabulary
import / useFile import (import "./…" or bare import "token/core.cam") / namespace (use …)
indexedEvent parameter indexing (EVM)
identityIdentity member marker
skipTest 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.