Rules are declared in the configuration file with the R command:
R LHStabs
RHS [tabs COMMENT
]
Rules are composed of two parts separated by tab characters (an optional third part can follow the first two, also separated by tab characters, and it forms a comment that is ignored).
Each rule forms a do-while statement as shown in Figure 2.2 So long as the LHS evaluates to true, the RHS rewrites the current address in the workspace. LHS evaluation is done by matching wildcard expressions to addresses. RHS rewriting is done by positional substitution. In this chapter we describe the wildcard and positional operators that aid in the writing of rules (see §28.1).