Horizon
|
Public Member Functions | |
__init__ (self, key, pyparser=None, delim=None, **kwds) | |
can_parse (self, text) | |
initial (self, text, comment) | |
![]() | |
add (self, obj) | |
__iadd__ (self, obj) | |
get_globals (self) | |
find_parser (self, text) | |
parse (self, node, text, comment) | |
pyparse (self, text) | |
fin (self, node) | |
pop (self, new, name) | |
flatten (self, new) | |
merge (self, orig, new) | |
Public Attributes | |
delim | |
![]() | |
key | |
flat_key | |
data_name | |
default | |
initvalue | |
pyparser | |
list_merge | |
asList | |
asDict | |
children | |
parent | |
globals | |
required | |
A single line param, such as 'Vinl 5.6', or 'Vinl_dc = 100mV'. 'delim' is required if specified.
pybis.Param.__init__ | ( | self, | |
key, | |||
pyparser = None , |
|||
default = None , |
|||
** | initvalue | ||
) |
key: Name of element. pyparser: Parser to call with pyparse default: Default value of object if not found initvalue: Default value of object on first merge data_name: Make the data of this node a child with name 'data_name' list_merge: Merge multiple copies together as list asList: Interpret pyparse results as a list asDict: Interpret pyparse results as a dict required: raise Exception if not found
Reimplemented from pybis.Parse.
Reimplemented in pybis.DictParam, pybis.RangeParam, and pybis.RangeDictParam.
pybis.Param.can_parse | ( | self, | |
text | |||
) |
True if we can parse 'text'.
Reimplemented from pybis.Parse.
pybis.Param.initial | ( | self, | |
text, | |||
comment | |||
) |
Parse the first line of text and return a Node object.
Reimplemented from pybis.Parse.