Qbject system
|
generic Object class (the name was chosen not to interfere with Python3) More...
Public Member Functions | |
def | __init__ (self, V, token=None) |
construct with given value | |
def | __call__ (self) |
by default all objects execute s in itself | |
def | __getitem__ (self, key) |
object[key] operator | |
def | __setitem__ (self, key, o) |
object[key]=val operator | |
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) | |
Public Attributes | |
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/ | |
lexpos | |
lexeme char position in source code | |
lineno | |
lexeme line number in source code | |
toklen | |
lexeme length | |
generic Object class (the name was chosen not to interfere with Python3)