The ast_tree.py module#

Summary#

NameMap

Element

Provides the base element.

ItemizedList

Provides the itemized list element.

SimpleList

Provides the simple itemized list element.

Member

Provides the member element for a simple itemized list.

OrderedList

Provides the ordered list element.

ListItem

Provides the list item element.

FileName

Provides the filename element.

OLink

Provides the external link element.

Paragraph

Provides the paragraph element.

Phrase

Provides the phrase element.

Structname

Provides the structure name element.

Title

Provides the title element.

Emphasis

Provides the emphasis element.

Example

Provides the example element.

InformalExample

Provides the informal example element.

GuiMenu

Provides the GUI menu element.

Replaceable

Provides the replaceable element.

ProgramListing

Provides the program listing element.

Variablelist

Provides the variable list.

RefSection

Provides the reference section element.

VarlistEntry

Provides the variable list entry element.

Term

Provides the term element.

GuiLabel

Provides the GUI label element.

GuiMenuItem

Provides the GUI menu item element.

SuperScript

Provides the superscript element.

Code

Provides the code element.

Math

Provides the math element.

InlineEquation

Provides the inline equation element.

SubScript

Provides the subscript element.

InlineGraphic

Provides the inline graphic element.

Quote

Provides the quote element.

Link

Provides the link element.

XRef

Provides the cross reference element.

UserInput

Provides the user input element.

Screen

Provides the screen element.

Literal

Provides the literal output element.

Caution

Provides the caution element.

Graphic

Provides the graphic element.

Function

Provides the function element.

Note

Provides the note element.

BlockQuote

Provides the block quote element.

RefMeta

Provides the reference metadata element.

IndexTerm

Provides the index term element.

Primary

Provides the primary element.

TGroup

Provides the tgroup element, which contains the header and body rows of a table.

Table

Provides the table element

Refentrytitle

Provides the title of the reference entry.

Refnamediv

Provides the refnamediv element, which contains the name,

Refname

Provides the refname element which contains

Refpurpose

Provides the refpurpose element, which contains

Refclass

Provides the base element.

Application

Provides the base element.

Refsect1

Provides the base element.

Command

Provides the command element.

ComputerOutput

Provides the computer output element.

Figure

Provides the figure element.

Footnote

Provides the base element.

Footnoteref

Provides the base element.

Formalpara

Provides the base element.

Glossterm

Provides the base element.

GuiButton

Provides the base element.

GuiIcon

Provides the base element.

Highlights

Provides the base element.

Important

Provides the base element.

InformalEquation

Provides the base element.

Interface

Provides the base element.

Markup

Provides the base element.

Mediaobject

Provides the base element.

Option

Provides the base element.

Refsect3

Provides the base element.

Refsynopsisdiv

Provides the base element.

Sidebar

Provides the base element.

XMLType

Provides the base element.

XMLWarning

Provides the base element.

ClassName

Provides the base element.

Imageobject

Provides the base element.

InformalFigure

Provides the base element.

Envar

Provides the base element.

ImageData

Provides the base element.

ColSpec

Provides the base element.

TBody

Provides the tbody element.

Entry

Provides the entry element.

Row

Provides the row element.

THead

Provides the thead element.

Remark

Provides the base element.

LiteralLayout

Provides the base element.

CiteTitle

Provides the base element.

ULink

Provides the base element.

SegTitle

Provides the base element.

Chapter

Provides the chapter element.

Section1

Provides the base element.

ProductName

Provides the base element.

ArgumentList

Argument

Argument object.

XMLCommand

Provides the XML command from the documentation.

InformalTable

Provides the informal table element.

OxygenXmlTree

Provides for loading an XML file as an AST (abstract syntax tree).

to_py_name

Convert to a Python-compatible name.

get_iter_values

Get the values of an iterator.

get_quant_iter_pos

Get the values of a quantity iterator.

to_py_arg_name

Python-compatible term

get_complete_args_from_initial_arg

is_elipsis

Check if a name is an elipsis.

resize_length

Resize the length of a text.

ponctuaction_whitespace

resize_element_list

parse_element

Parse a single element.

parse_children

Parse the children of an element.

parse_text

Parse a paragraph element.

get_parser

Module detail#

ast_tree.to_py_name(name, name_map=None)#

Convert to a Python-compatible name.

ast_tree.get_iter_values(name: str)#

Get the values of an iterator.

ast_tree.get_quant_iter_pos(name: str) tuple#

Get the values of a quantity iterator.

Parameters:
name: str

Name of the parameter containing the iterator.

Returns:
tuple

Tuple containing the iteration value and the position of the iterator.

ast_tree.to_py_arg_name(name: str) str#

Python-compatible term

ast_tree.get_complete_args_from_initial_arg(initial_args: List[str], elipsis_args: List[str]) List[str]#
ast_tree.is_elipsis(name: str) bool#

Check if a name is an elipsis.

Returns:
bool

True if the argument is an elipsis, False otherwise.

ast_tree.resize_length(text, max_length=100, initial_indent='', subsequent_indent='', list=False)#

Resize the length of a text.

ast_tree.ponctuaction_whitespace(text, ponctuation)#
ast_tree.resize_element_list(text, max_length=100)#
ast_tree.parse_element(element)#

Parse a single element.

ast_tree.parse_children(element)#

Parse the children of an element.

Returns:
list

List of the children of the element.

ast_tree.parse_text(element)#

Parse a paragraph element.

ast_tree.get_parser()#
ast_tree.CONV_EQN = False#
ast_tree.CONST#
ast_tree.CLEANUP#
ast_tree.PY_ARG_CLEANUP#
ast_tree.NAME_MAP_GLOB#
ast_tree.SKIP#
ast_tree.NO_RESIZE_LIST = ['Variablelist']#
ast_tree.superlatif = ['st', 'nd', 'rd', 'th']#
ast_tree.parsers#
ast_tree.item_needing_fcache#
ast_tree.item_needing_all#