...
Line 1: A ruleset starts with the ruleset
keyword, followed by the ruleset identifier or RID. In this case, the RID is hello_world
. The body of a ruleset is contained with in within curly brackets.
Lines 2-10: A ruleset usually contains a meta
block giving information about the ruleset. This information includes information data like the ruleset name
and author
, as well as pragmas that affect the ruleset's behavior. For example, this ruleset has a shares
pragma saying which global functions are shared with the outside world (including other rulesets).
...
Installing a ruleset inside a pico enables the pico engine to evaluate each rule on that pico when corisponding corresponding events are raised to that pico.
...