5. Python macro commands#

Summary description of the nature of macro-commands:

  1. A Python macro command can produce one or more results (called concepts) while simple commands produce zero (command type PROC) or one result (command type OPER);

  2. A macro command has parameters like an ordinary command; these are simple keyword factors and keywords;

  3. The main concept produced by a macro is returned by the macro while the secondary product concepts are arguments modified by the macro;

  4. Secondary product concepts must be typed: this is done through a function provided by the macro developer via the argument

    < http://macros.html/#id10>`sd_pro`_ of the macro;

  5. The macro command body is a Python function that takes care of processing that includes calling other commands (or even other macro commands).

To define a macro-command, its developer must therefore define:

  1. the keywords of the order;

  2. the type of concepts produced;

  3. the body of the macro control.