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

Class _Choice

source code


A set of alternative Characters (or sequences).
Instance Methods [hide private]
 
_build_str(self)
Construct a string representation of self.
source code
 
build(self, graph, before, after)
Connect in parallel from start to end, but add extra nodes so that the sequence is tried in order (because evaluation tries empty transitions last) and that loops don't return to start.
source code

Inherited from Sequence: __hash__, __init__, __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]

_build_str(self)

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

build(self, graph, before, after)

source code 
Connect in parallel from start to end, but add extra nodes so that the sequence is tried in order (because evaluation tries empty transitions last) and that loops don't return to start.
Overrides: Sequence.build