There are two categories of paragraph rules: primary rules and uses rules. A primary rule defines a WML paragraph rule from scratch. The following example is the definition of a primary rule named L1BulletItem
:
PARAGRAPH "L1BulletItem" TYPE List { LEVEL 1 KIND Bullet ACTIONS { write(*,listitem(paragraph(text()))); } }
A uses rule specifies that one paragraph rule uses the definition of another rule. The other rule is typically a primary rule. The following example is the definition of a uses rule named Bullet
, which uses a primary rule named L1BulletItem
:
PARAGRAPH "Bullet" TYPE List { USES "L1BulletItem" }