5. Python macro commands#
Summary description of the nature of macro-commands:
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);
A macro command has parameters like an ordinary command; these are simple keyword factors and keywords;
The main concept produced by a macro is returned by the macro while the secondary product concepts are arguments modified by the macro;
- 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;
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:
the keywords of the order;
the type of concepts produced;
the body of the macro control.