Core Features
Keywords
Explore Cambo's vocabularies.
| Keyword | Kind | Description |
|---|---|---|
as | Namespace declarer | used to group related code into a named scope. |
auto | Type specifier | used to automatically infer a type |
bool | Data type | used to define a variable or function return type that stores true/false. |
break | Termination | used to terminate a loop or switch and jump out of the block. |
case | Control flow | a sub-component of switch, used to match a labeled value and execute a given code. |
char | Data type | used to define a variable or function return tyep that stores ascii characters |
char16 | Data type | used to define a variable or function return type that sotres 16-bit characters |
char32 | Data type | used to define a variable or function return type that stores 32-bit characters |
const | Qualifier | used to qualify a variable of any type to be immutable and can be processed at compile time. |
continue | Control flow | used to skip the remaining code inside the current iteration and jump to the next cycle of the loop. |
define | Alias | used to make an alias for an existing data type or a user-defined type, allowing you to create a simpler version of a complex type. |
default | Argument Specifier | used to indicate a specific argument of a function takes its default value. |
deinit | Function modifier | a destructor of struct, which is automatically invoked after an object of a defined struct is destroyed. |
else | Control flow | used to define an alternative line or block of code that executes only when the given condition the the corresponding if evaluates to false. |
enum | User-defined type | enumeration, used to define a collection of named constants, which only primitive types are permitted. |
false | Literal | a boolean literal, used to represent the false state of logic. |
float16 | Data type | used to define a varible or function return type that stores 16-bit floating points. |
float32 | Data type | used to define a varible or function return type that stores 32-bit floating points. |
float64 | Data type | used to define a varible or function return type that stores 64-bit floating points. |
float80 | Data type | used to define a varible or function return type that stores 80-bit floating points. |
float128 | Data type | used to define a varible or function return type that stores 128-bit floating points. |
for | Control flow | used to define a for-loop system to execute a line or block of code by defining the initial counter, a stay-in condition and an increment step. |
import | Module importer | used to load and access an external module or libary into the current file. |
int8 | Data type | used to define a variable or function return type that stores 8-bit integers. |
int16 | Data type | used to define a variable or function return type that stores 16-bit integers. |
int32 | Data type | used to define a variable or function return type that stores 32-bit integers. |
int64 | Data type | used to define a variable or function return type that stores 64-bit integers. |
int128 | Data type | used to define a variable or function return type that stores 128-bit integers. |
init | Function modifier | a constructor of struct, which is automatically invoked when an object of a defined struct is created. |
interface | Module interface declarer | used to declare an interface of a module. |
module | Moduel declarer | used to declare a module, typically at the very first line of a module file. |
null | Literal | represent the intentional absence of an object or a reference pointing to nothing, equivalent to void but in pointer context. |
otherwise | Control flow | |
return | Control flow | used to exit a function and optionally send a value back to where the function was called. |
repeat | Control flow | a looping keyword, used to define a line or block of code that executes at least once before checking the given condition and continuing to the next cycle of the loop. |
static | Modifier | used to define a varible or method that belongs to the struct itself rather than a specific object, and also used to preserve a variable's value between function calls. |
struct | User-defined type | used to define a struct, a custom data type that groups related variables and methods in a one location. |
match | Control flow | used to define a matching value mechanism that evaluates a given condition and directly executes the line of block code where the value matches. |
string | Data type | used to define a variable or function return type that stores a collection of characters. |
syscall | system call invoker | used to invoke the system call |
true | Literal | a boolean literal, used to represent the true state of logic. |
type | Custom type declarer | |
union | User-defined type | used to define a custom data structure whoose members share the same memory location. |
uint8 | Data type | unsinged version of int8. |
uint16 | Data type | unsinged version of int16. |
uint32 | Data type | unsinged version of int32. |
uint64 | Data type | unsinged version of int64. |
uint128 | Data type | unsinged version of int128. |
void | Type specifier | used to indicate that a function does not return any value. |
while | Control flow | used to define a looping system that repeat a line of block of code as long as the given condition is true. |