3. Use macros#

Using macros in Python is easy. Compared to simple commands like OPERou and PROC, the only difference is in the concepts produced by the macro. A simple command, such as OPER, has a single product concept that can be found to the left of the « = » sign, as follows:

concept = COMMANDE (simple-keyword-or-factors)

A simple command like PROC has no product concept and is written as:

COMMANDE (simple-keyword-or-factors)

A macro command, of type MACRO, can have several product concepts. One (but this is not mandatory) that we will find to the left of the = sign, as for a OPER, the others as arguments simple keywords or factors. The user manual for a simple keyword will be presented. It extends easily to factor keywords. Some keywords are likely to produce concepts. To ask a macro command to produce this concept, the user will write to the right of the = sign after the keyword name, CO (“concept_name”), as in the following example:

ASSEMBLAGE (NUMEDDL =CO ('num'))

This has the effect of creating a product concept with the name numen output from the ASSEMBLAGE command. Its type will be determined according to the conditions for calling the order. COest a reserved name that allows you to create named, non-typed product concepts prior to calling the command. This is the command that will assign the right type to this concept.