.. _start_api_reports: .. currentmodule:: iode ############# API Reference ############# ****************** Execution Commands ****************** +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | Command | Python | Description | +=====================================+=================================================================================================================================================+===========================================================+ | :ref:`$abort ` | `exit() `_ | interrupts the report (current and upper levels) | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$ask ` | `input(prompt) `_ | prompts a question | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$beep ` | will not be implemented | produces a beep sound | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$chdir ` | `os.chdir(path) `_ [#f1]_ | changes the current directory | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$debug ` | to be implemented | indicates the file and line currently being executed | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$define ` | `my_variable = value `_ | defines a macro | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$foreach ` | `for item in iterable `_ | loops over a list of values | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$goto ` | not supported by Python | (un)conditional branch to a label | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$incrtime ` | :func:`increment_t` | | increments the *current period* `t` (default is 1) | | | | | used when evaluating a LEC expression | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$indent ` | | No equivalent (Python | enables or disables indentation | | | | IS indentation-sensitive) | | +-------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+-----------------------------------------------------------+ | :ref:`$label