Package lepl :: Package regexp :: Module core :: Class Labelled
[hide private]
[frames] | no frames]

Class Labelled

source code


A labelled sequence. Within our limited implementation these are restricted to (1) being children of Regexp and (2) not being followed by any other sequence. Their termination defines terminal nodes.
Instance Methods [hide private]
 
__init__(self, alphabet, label, *children)
Expects a single list of arguments, as will be received if invoked with the > operator.
source code
 
_build_str(self)
Construct a string representation of self.
source code
 
build(self, graph, before, after)
A sequence, but with an extra final empty transition to force any loops before termination.
source code

Inherited from Sequence: __hash__, __str__, clone

Inherited from support.node.Node: __bool__, __dir__, __getitem__, __iter__, __len__, __nonzero__, __repr__

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, alphabet, label, *children)
(Constructor)

source code 
Expects a single list of arguments, as will be received if invoked with the > operator.
Overrides: object.__init__
(inherited documentation)

_build_str(self)

source code 
Construct a string representation of self.
Overrides: Sequence._build_str

build(self, graph, before, after)

source code 
A sequence, but with an extra final empty transition to force any loops before termination.
Overrides: Sequence.build