Logtalk, Prolog (*). Logtalk Prolog Prolog. , , , , source.pl term_expansion/2 goal_expansion/2 expansions.pl, - :
% first, load the expansion hooks:
| ?- [expansions].
...
% second, expand a file using those hooks:
| ?- logtalk_compile(source, [hook(user)]).
...
, ( ) source_pl.pl ( , scratch_directory Logtalk). Prolog, user. source.pl Prolog, term_expansion/2, Logtalk . , , .
Logtalk, , , , , {}/1.
(*) Please note that the term extension mechanism is not standard, is not provided by all Prolog implementations and with significant differences between implementations.
source
share