Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
myst_parser.parsers.parse_html.Tree Class Reference

Public Member Functions

 __init__ (self, str name="")
 
 clear (self)
 
Element last (self)
 
 nest_tag (self, str name, dict attrs)
 
 nest_xtag (self, str name, dict attrs)
 
 nest_vtag (self, str name, dict attrs)
 
 nest_terminal (self, type[TerminalElement] klass, str data)
 
 enclose (self, str name)
 

Public Attributes

 name
 
 outmost
 
 stack
 

Detailed Description

The engine class to generate the AST tree.

Constructor & Destructor Documentation

◆ __init__()

myst_parser.parsers.parse_html.Tree.__init__ (   self,
str   name = "" 
)
Initialise Tree

Member Function Documentation

◆ clear()

myst_parser.parsers.parse_html.Tree.clear (   self)
Clear the outmost and stack for a new parsing.

◆ enclose()

myst_parser.parsers.parse_html.Tree.enclose (   self,
str  name 
)
When a closing tag is found, pop the pointer's scope from the stack,
to then point to the earlier scope's tag.

◆ last()

Element myst_parser.parsers.parse_html.Tree.last (   self)
Return the last pointer which point to the actual tag scope.

◆ nest_tag()

myst_parser.parsers.parse_html.Tree.nest_tag (   self,
str  name,
dict  attrs 
)
Nest a given tag at the bottom of the tree using
the last stack's pointer.

◆ nest_terminal()

myst_parser.parsers.parse_html.Tree.nest_terminal (   self,
type[TerminalElement klass,
str  data 
)
Nest the data onto the tree.

◆ nest_vtag()

myst_parser.parsers.parse_html.Tree.nest_vtag (   self,
str  name,
dict  attrs 
)
Nest a VoidTag onto the tree.

◆ nest_xtag()

myst_parser.parsers.parse_html.Tree.nest_xtag (   self,
str  name,
dict  attrs 
)
Nest an XTag onto the tree.

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