![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
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 | |
The engine class to generate the AST tree.
| myst_parser.parsers.parse_html.Tree.__init__ | ( | self, | |
| str | name = "" |
||
| ) |
Initialise Tree
| myst_parser.parsers.parse_html.Tree.clear | ( | self | ) |
Clear the outmost and stack for a new parsing.
| 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.
| Element myst_parser.parsers.parse_html.Tree.last | ( | self | ) |
Return the last pointer which point to the actual tag scope.
| 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.
| myst_parser.parsers.parse_html.Tree.nest_terminal | ( | self, | |
| type[TerminalElement] | klass, | ||
| str | data | ||
| ) |
Nest the data onto the tree.
| myst_parser.parsers.parse_html.Tree.nest_vtag | ( | self, | |
| str | name, | ||
| dict | attrs | ||
| ) |
Nest a VoidTag onto the tree.
| myst_parser.parsers.parse_html.Tree.nest_xtag | ( | self, | |
| str | name, | ||
| dict | attrs | ||
| ) |
Nest an XTag onto the tree.