Package ClusterShell :: Module NodeSet :: Class ParsingEngine
[hide private]
[frames] | no frames]

Class ParsingEngine

source code


Class that is able to transform a source into a NodeSetBase.

Instance Methods [hide private]
 
__init__(self, group_resolver)
Initialize Parsing Engine.
source code
 
parse(self, nsobj, autostep)
Parse provided object if possible and return a NodeSetBase object.
source code
 
parse_string(self, nsstr, autostep)
Parse provided string and return a NodeSetBase object.
source code
 
parse_group(self, group, namespace=None, autostep=None)
Parse provided single group name (without @ prefix).
source code
 
parse_group_string(self, nodegroup)
Parse provided group string and return a string.
source code
 
_next_op(self, pat)
Opcode parsing subroutine.
source code
 
_scan_string(self, nsstr, autostep)
Parsing engine's string scanner method.
source code

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

Class Variables [hide private]
  OP_CODES = {'difference_update': '!', 'intersection_update': '...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, group_resolver)
(Constructor)

source code 

Initialize Parsing Engine.

Overrides: object.__init__

Class Variable Details [hide private]

OP_CODES

Value:
{'difference_update': '!',
 'intersection_update': '&',
 'symmetric_difference_update': '^',
 'update': ','}