A rule that specifies what new edges are licensed by any given set of
existing edges. Each chart rule expects a fixed number of edges, as
indicated by the class variable NUM_EDGES. In particular:
list of EdgeI
|
apply(self,
chart,
grammar,
*edges)
Add the edges licensed by this rule and the given edges to the chart. |
source code
|
|
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
|
|
list of EdgeI
|
|
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
|
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__init__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|