$$ Result-Statement ::= "result" Expression ["," (Rule-Set | "accept")] ";" .
specifies the Result category of the rule and the successor rules. The value expr is the Result category. Behind the keyword rules the names of all successor rules are enumerated. For every successor rule that is being executed a new rule path will be created. The rule set may be enclosed in parentheses.
result expr, rules rule1, rule2, ;
If you want successor rules to be executed only if no other rule has been successful, you can put their names behind the other rules' names and write an else in front of them:
rules rule1, rule2 else rule3, rule4 elseIf none of the normal rules (here: rule1 and rule2) has been successful, rule3 and rule4 are executed. If these rule also fail, the next rules are executed, and so on. A rule has been successful if it has executed at least one result statement.;
result expr, accept;If this statement is reached in a rule path, the input is accepted as grammatically well-formed. The value expr is returned as the result of the morphological or syntactic analysis.
result expr;If this statement is reached, the value expr is used as a result of the executed rule.
result surface, category;It creates an entry in the allomorph lexicon. The allomorph surface surface must be a string; category is the categorical information of the allomorph.