.. _f-rconverterListener: module ``languages.rconverterListener`` ======================================= .. inheritance-diagram:: pyensae.languages.rconverterListener Short summary +++++++++++++ module ``pyensae.languages.rconverterListener`` Convert R into Python :githublink:`%|py|5` Classes +++++++ +-----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | class | truncated documentation | +=========================================================================================+================================================================================+ | :class:`R2PyConversionError ` | Raised when conversion cannot be done. | +-----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ | :class:`TreeStringListener ` | This class is an attempt to run through the tree and convert it into a string. | +-----------------------------------------------------------------------------------------+--------------------------------------------------------------------------------+ Methods +++++++ +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | method | truncated documentation | +=========================================================================================================+=======================================================+ | :py:meth:`__init__ ` | | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :py:meth:`__init__ ` | constructor | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :py:meth:`__str__ ` | usual | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`add_code ` | Converts one node into :epkg:`python`. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`add_code_final ` | Adds extra characters if needed. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`empty_stack ` | Empties the stack. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`enterEveryRule ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`enterIntersections ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`enterRanges ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`exitEveryRule ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`exitIntersections ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`exitRanges ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`fLOG ` | logging | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`get_python ` | Get the Python code for the R code. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`has_parent ` | Tells if *parent* is one of the parents of *current*. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`search_parents ` | Searches for a substring in parents' node name. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`terminal_node_name ` | Converts a terminal node into a rule name. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`to_python ` | Converts a couple *(name, node)* into :epkg:`Python`. | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`visitErrorNode ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ | :meth:`visitTerminal ` | event | +---------------------------------------------------------------------------------------------------------+-------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: pyensae.languages.rconverterListener :members: :special-members: __init__ :show-inheritance: