![]() |
YAP 7.1.0
|
expand_term( T,- X)
properties: dynamic
properties: multifile
This user-defined predicate is called by YAP after reading goals and clauses
expand_term(
T , X) is called first on the current source module Module ; if iuser:expand_term(
T , X )
is available on every moduleThis predicate is used by YAP for preprocessing each top level term read when consulting a file and before asserting or executing it It rewrites a term T to a term X according to the following rules: first try term_expansion/2 in the current module, and then try to use the user defined predicate user:term_expansion/2 ` If this call fails then the translating process for DCG rules is applied, together with the arithmetic optimizer whenever the compilation of arithmetic expressions is in progress