Skip to content
Paolo Angeli edited this page Nov 1, 2019 · 12 revisions

The Jai language contains a relatively small set of reserved keywords:

Word Brief description
Any any type
array_add adds an element to the specified variable length array
array_free removes everything and deallocates memory for all the items in the specified variable length array
assert stop execution upon the defined condition
bool primitive logic type
break stop a loop execution
cast force the type conversion
continue skip to the following iteration in the current loop
case conditional multiple case branch operation
defer execute the following at the end of the scope in reversed stacked order
else alternative conditional execution
enum declaration of a set of constants
false boolean value
float primitive single-precision floating-point type
for defined length loop
if conditional evaluation
inline compiler directive will expand the following code inline
int primitive integer type s32 (signed 32 bits) alias
is_constant compile-time evaluation of a constant expression
it current default unnamed iterated item in for loops
it_index index of the current iterated item in for loops
null undefined memory address
operator overload of an operator symbol
return returns a value or a set of values form a function
struct aggregated data type definition statement
true boolean value
type_of get the type of a variable
type_info gets a type info struct for the passed type, both inferred by the passed variable or real type.
using compiler instruction that imports a name in the current scope
while undefined length loop iterator

Navigate

Types, constants and variables

  • Variables and assignments
  • Language data types
  • Simple user-defined data types
  • Expressions and operators
  • Type-casting
  • Pointers

Flow control

Procedures and functions

  • Declarations
  • Arguments / Parameters
  • Return values
  • Overloading / Polymorhism
  • Advanced features
  • Lambdas

Aggregated data types

  • Arrays
  • Strings
  • Composition of Structs

Advanced features

Clone this wiki locally