From 5998f067b649bd6d234959eb06bc2f228367d968 Mon Sep 17 00:00:00 2001 From: Ronald Tse Date: Wed, 2 Dec 2026 09:34:15 +0800 Subject: [PATCH] Document the RULE object's annotation keys The RULE entry was missing from the referable-objects list, and its sub-keys (where rules, informal propositions, entity refs) were undocumented. The entity-ref form follows the general_design_connectivity_arm precedent (TRThurman, on expressdocs-reference#153): a global rule applies to all instances of each entity ref, so per-entity-ref text is not permitted by the standard - the key exists for computer-generated descriptions only. --- syntax.adoc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/syntax.adoc b/syntax.adoc index c555df0..3105a0a 100644 --- a/syntax.adoc +++ b/syntax.adoc @@ -235,5 +235,19 @@ including: * TYPE * FUNCTION ** LOCAL variables +* RULE +** WHERE rules: `"schema_name.rule_name.wr:WR1"` +** IP: Informal proposition rules: `"schema_name.rule_name.ip:IP1"` +** entity refs: `"schema_name.rule_name.entity_ref_name"` + +A global rule constrains the entities listed in its `FOR (…)` clause. +Those entities are documented on their own entity tags; the rule's own +remark describes how the rule constrains them. Because a global rule +applies to *all* instances of each entity ref, the standard does not +permit different per-entity-ref text — an entity-ref key carries the +same description for every rule that references it, so it should +generally only be used where a computer-generated description is +acceptable (see the `shape_elements_are_acyclic.Shape_element` example +in `general_design_connectivity_arm.exp`).