ARL syntax

The ARL rule language uses a syntax close to the syntax of the Java language.

Curly braces

Curly braces, { }, mark the beginning and the end of code blocks:

if (a.contains(b)) {
   note("a contains " + b);	
}

Backquotes

Unlike in Java, you can use backquotes, ``, in the ARL rule language to reference variables and classes. This allows you to reference names that contain spaces and keywords:

String `the lazy dog` ="pluto";
int `=` =12;

Comments

You can add comments to help you structure and document rules.

The ARL rule language uses forward slashes, //, for single line comments:

// This is a comment

Block comments start with /* and run until a closing */:

/* This is also a comment
but written over multiple lines */