Designing strategies
====================
AOFlagger flagging strategies are written in the `Lua language `_.
Lua is quite a simple language, and if you know Python, Lua will feel quite familiar.
Most of its syntax should be evident when inspecting some of the example
strategies. In Lua, comments start with two dashes "``--``", ``if`` and ``for`` blocks
end with a ``end`` statement, and class methods can be called with either
.. code-block:: lua
object.method(object, parameter1, parameter2)
or
.. code-block:: lua
object:method(parameter1, parameter2)
.. toctree::
:maxdepth: 2
:caption: The following sections describe the details:
script_hello_world
script_structure
script_example
Option list
functions
class_data