An abstract base class for chart rules.
AbstractChartRule provides:
iter of EdgeI
|
apply_iter(self,
chart,
grammar,
*edges)
Returns:
A generator that will add edges licensed by this rule and the given
edges to the chart, one at a time. |
source code
|
|
iter of EdgeI
|
apply_everywhere_iter(self,
chart,
grammar)
Returns:
A generator that will add all edges licensed by this rule, given the
edges that are currently in the chart, one at a time. |
source code
|
|
list of EdgeI
|
apply(self,
chart,
grammar,
*edges)
Add the edges licensed by this rule and the given edges to the chart. |
source code
|
|
list of EdgeI
|
|
|
|
|