result
Statementresult expr, rules rule1, rule2, ...;
specifies the Result feature structure of the rule and the successor rules. The
value expr is the Result feature structure. 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.
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:
result expr, rules rule1, rule2 else rule3, rule4 else ...;
If 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 at least
one result
statement has been executed.
result
statement (and
therefore no successor rules are to be called) the following format has
to be used:
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
statement in a filter or robust-rule is
result expr;
If this statement is reached, the value expr is used as a result
of the executed rule.
result
statement in a robust-rule:
result feature_structure;
or
result surface, feature_structure;
The word form surface with feature structure feature_structure is
used as a result of the robust-rule. surface must be a prefix of the
input that has not been parsed yet. If it is omitted, the input up to, but
excluding, the first space is taken.
result
statement in an allo rule is:
result surface, feature_structure;
It creates an entry in the allomorph lexicon. The allomorph surface surface must be a string; feature_structure is the feature structure of the allomorph.