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++:
// this is a single line comment
/* this is a multi line comment */