Expressions

XJEase expressions consist of atoms combined together with operators. Atoms that can be used in an expression are:

These atoms can then be combined together using the various operators available in XJEase. The precedence of operators can be overridden and controlled by grouping sub-expressions in brackets:

INT x := 1 + 2 * 3;    // results in 7
INT y := (1 + 2) * 3;  // results in 9