Horizon
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pybis.TokenizeSection Class Reference
Inheritance diagram for pybis.TokenizeSection:
pybis.Section pybis.Bracket pybis.Parse pybis.Node_Declarations pybis.Path_Description pybis.Pin_Numbers

Public Member Functions

 __init__ (self, key, pyparser=None, **kwds)
 
 initial (self, text, comment)
 
 parse (self, node, text, comment)
 
 fin (self, node)
 
- Public Member Functions inherited from pybis.Section
 labeled_merge (self, orig, new)
 
- Public Member Functions inherited from pybis.Bracket
 can_parse (self, text)
 
- Public Member Functions inherited from pybis.Parse
 add (self, obj)
 
 __iadd__ (self, obj)
 
 get_globals (self)
 
 find_parser (self, text)
 
 pyparse (self, text)
 
 pop (self, new, name)
 
 flatten (self, new)
 
 merge (self, orig, new)
 

Additional Inherited Members

- Public Attributes inherited from pybis.Section
 needs_text
 
 merge
 
 key
 
- Public Attributes inherited from pybis.Parse
 key
 
 flat_key
 
 data_name
 
 default
 
 initvalue
 
 pyparser
 
 list_merge
 
 asList
 
 asDict
 
 children
 
 parent
 
 globals
 
 required
 

Detailed Description

Text from entire section is collected and parsed with pyparser.

Constructor & Destructor Documentation

◆ __init__()

pybis.TokenizeSection.__init__ (   self,
  key,
  pyparser = None,
**  labeled 
)
If a Section is labeled, the data is an OrderedDict of objects
   indexed by sectionText.

Reimplemented from pybis.Section.

Reimplemented in pybis.Node_Declarations, pybis.Pin_Numbers, and pybis.Path_Description.

Member Function Documentation

◆ fin()

pybis.TokenizeSection.fin (   self,
  node 
)
Add a node to the parent.

Reimplemented from pybis.Parse.

Reimplemented in pybis.Pin_Numbers, and pybis.Path_Description.

◆ initial()

pybis.TokenizeSection.initial (   self,
  text,
  comment 
)
Parse the first line of text and return a Node object.

Reimplemented from pybis.Section.

◆ parse()

pybis.TokenizeSection.parse (   self,
  node,
  text,
  comment 
)
Parse a subsequent line of text, False means we can't.

Reimplemented from pybis.Parse.


The documentation for this class was generated from the following file: