generic Object class (the name was chosen not to interfere with Python3)
More...
|
|
def | __init__ (self, V, token=None, doc='') |
| | construct with given value
|
| |
|
def | __call__ (self) |
| | by default all objects executes in itself
|
| |
|
def | __getitem__ (self, key) |
| | object[key] operator
|
| |
|
def | __setitem__ (self, key, o) |
| | object[key]=val operator
|
| |
|
def | __lshift__ (self, o) |
| | << operator
|
| |
|
def | push (self, o) |
| | append element
|
| |
| def | top (self) |
| |
| def | pop (self) |
| |
|
def | drop (self) |
| | drop top element
|
| |
|
def | __repr__ (self) |
| | text dump (tree form)
|
| |
|
def | dump (self, depth=0, prefix='') |
| | dump any object in tree form
|
| |
|
def | pad (self, N) |
| | pad tree element
|
| |
|
def | head (self, prefix='') |
| | dump object in short form (header only)
|
| |
|
|
| type |
| | <type:value> must be compatible with PLY library token objects
|
| |
|
| value |
| | single value
|
| |
|
| nest |
| | nest[]ed elements /ordered/
|
| |
|
| attr |
| | attr{}ibutes /associative array, unordered/
|
| |
| | immed |
| | docstring More...
|
| |
|
| lexpos |
| | lexeme char position in source code
|
| |
|
| lineno |
| | lexeme line number in source code
|
| |
|
| toklen |
| | lexeme length
|
| |
|
|
dictionary | dumped = {} |
| | variable holds IDs of all dumped objects (to avoid infty recursion)
|
| |
generic Object class (the name was chosen not to interfere with Python3)
◆ pop()
◆ top()
- Returns
- top element /without removing/
◆ immed
docstring
immediate flag for objects executes in compile mode
The documentation for this class was generated from the following file: