Scopes

Scopes are nested namespaces which are used to link references within the ast to their corresponding declarations. Therefore within each scope names must be unique.

Global scope

Local scopes

event_declaration

rule_declaration

predicate_definition

function_definition