Lua 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 an end statement, and class methods can be called with either

object.method(object, parameter1, parameter2)

or

object:method(parameter1, parameter2)