cruxLang

Syntax Reference

Complete syntax guide for cruxLang.

Keywords

cruxLang has the following reserved keywords:

worldagentrulezone whendoandor nottruefalse

World Declaration

crux
world WorldName {
  seed: 12345
  tick_rate: 1
  version: "1.0.0"
  description: "Description"
  author: "Author Name"
}

Operators

OperatorMeaning
==Equal
!=Not equal
<Less than
>Greater than
<=Less than or equal
>=Greater than or equal
andLogical AND
orLogical OR
notLogical NOT

Comments

crux
// Single-line comment

/* Multi-line
   comment */