Ruleset structure

Here is the structure of a ruleset:

package packageName;

(import importName;)*

visibility ruleset ruleSetName(ruleSetParameters) {
(rule declaration)*
}

Here is the structure of a rule:

visibility [parentRuleName::]rule ruleName(ruleParameters) : returnType {
(body statements)*
}

MQL comments are defined the same way as in Java and C/C++:

Related concepts
Ruleset