diva.sketch.parser2d
Interface Rule
- All Known Implementing Classes:
- BasicRule
- public abstract interface Rule
A tree-structured grammar rule of the form:
LHS => RHS
Where LHS is a constituent string (non-terminal) and RHS is a
programmatic pattern matching function that does some kind of graph
or tree matching on the input constituent set.
- Version:
- $Revision: 1.1 $
Method Summary |
java.lang.String |
getRuleType()
Return the LHS type of the rule. |
java.util.Iterator |
matchRule(ConstituentSet in)
Return an iterator over the possible matches of this rule to
the given constituent set. |
getRuleType
public java.lang.String getRuleType()
- Return the LHS type of the rule.
matchRule
public java.util.Iterator matchRule(ConstituentSet in)
- Return an iterator over the possible matches of this rule to
the given constituent set.