next up previous contents
Next: Rule tests Up: Specification of graph rewrite Previous: Group variable declarations

Rules in a rule group

Rules in a rule group are specified either in the style of (if they are edge-addition rules), or in the style of graph rewrite rules. Each rule consists of a rule test part and a rule transformation part. Edge-addition rules only allow predicates in their transformation part. Each rule may be accompanied by rule options, FIRST- and LAST-code. Rules are either enclosed in '(' ')' brackets or they end with a ';'. Facts are explained in section 3.8.1, transformation rules in section 3.7.


\begin{verbsyntax}\onerule{Rules}{(EARSRule \vert XGRSRule \vert EARSFact) + }
\...
...\onerule{Predicates}{Predicate // (',' \vert 'and' \vert '&&')}
\end{verbsyntax}



Uwe Assmann
1998-12-22