type TopDownInitRule
source code
object --+
|
ChartRuleI --+
|
AbstractChartRule --+
|
TopDownInitRule
- Known Subclasses:
-
A rule licensing edges corresponding to the grammar productions for
the grammar's start symbol. In particular, this rule specifies that:
is licensed for each grammar production S → α,
where S is the grammar's start symbol.
int
|
NUM_EDGES = 0
The number of existing edges that this rule uses to license new
edges.
|
- Parameters:
edges - A set of existing edges. The number of edges that should be
passed to apply is specified by the NUM_EDGES class variable.
- Returns:
iter of EdgeI
- A generator that will add edges licensed by this rule and the
given edges to the chart, one at a time. Each time the generator
is resumed, it will either add a new edge and yield that edge; or
return.
- Overrides:
ChartRuleI.apply_iter
- (inherited documentation)
|