Package rxpy :: Package graph :: Module opcode :: Class Match
[hide private]
[frames] | no frames]

Class Match

source code


The terminal node. If the engine "reaches" here then the match was a success.

Instance Methods [hide private]
 
__str__(self)
Subclasses must implement something useful here, which will be displayed in the graphviz node (see repr).
source code
 
visit(self, visitor, state=None)
The visitor pattern - used to evaluate the graph by an interpreter, for example.
source code
 
size(self, groups)
The number of characters matched by this and subsequence nodes, if known, otherwise None.
source code

Inherited from support.BaseNode: __init__, __repr__, clone, concatenate, consumer, deep_eq, start

Inherited from support.BaseNode (private): _kargs, _node_eq

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__str__(self)
(Informal representation operator)

source code 
Subclasses must implement something useful here, which will be displayed in the graphviz node (see repr).
Overrides: object.__str__
(inherited documentation)

visit(self, visitor, state=None)

source code 
The visitor pattern - used to evaluate the graph by an interpreter, for example. Calls back to the visitor via the interface described in rxpy.parser.visitor.Visitor.
Overrides: support.BaseNode.visit
(inherited documentation)

size(self, groups)

source code 
The number of characters matched by this and subsequence nodes, if known, otherwise None. Nodes must give a single, fixed number or None, so any loops should return None.
Overrides: support.BaseNode.size
(inherited documentation)