Syntax Reference
Complete syntax guide for cruxLang.
Keywords
cruxLang has the following reserved keywords:
worldagentrulezone whendoandor nottruefalseWorld Declaration
crux
world WorldName {
seed: 12345
tick_rate: 1
version: "1.0.0"
description: "Description"
author: "Author Name"
}Operators
| Operator | Meaning |
|---|---|
== | Equal |
!= | Not equal |
< | Less than |
> | Greater than |
<= | Less than or equal |
>= | Greater than or equal |
and | Logical AND |
or | Logical OR |
not | Logical NOT |
Comments
crux
// Single-line comment
/* Multi-line
comment */