YAP 7.1.0
metadecls.yap
Go to the documentation of this file.
1
2/**
3 * @file metadecls.yap
4 * @author VITOR SANTOS COSTA <vsc@vcosta-laptop.dcc.fc.up.pt>
5 * @date Sat Apr 7 03:08:03 2018
6 *
7 * @brief meta=declarations, must be run early.
8 */
9
10 /**
11 * @addtogroup Meta-Calls The Module System versus the meta-call.
12 * @ingroup YAPMetaPredicates
13 * @{
14 *
15*/
16
17
18:- '$install_meta_predicate'((0,0),prolog, (',') , 2).
19
20:- meta_predicate
21abolish(:),
22 abolish(:,+),
23 alarm(+,0,-),
24 all(?,0,-),
25 assert(:),
26 assert(:,+),
28 asserta(:),
29 asserta(:,+),
31 assertz(:),
32 assertz(:,+),
34 at_halt(0),
35 bagof(?,0,-),
36 bb_get(:,-),
37 bb_put(:,+),
38 bb_delete(:,?),
39 bb_update(:,?,?),
40 call(0),
41 call(1,?),
42 call(2,?,?),
43 call(3,?,?,?),
44 call_with_args(0),
45 call_with_args(1,?),
46 call_with_args(2,?,?),
47 call_with_args(3,?,?,?),
48 call_with_args(4,?,?,?,?),
49 call_with_args(5,?,?,?,?,?),
50 call_with_args(6,?,?,?,?,?,?),
51 call_with_args(7,?,?,?,?,?,?,?),
52 call_with_args(8,?,?,?,?,?,?,?,?),
53 call_with_args(9,?,?,?,?,?,?,?,?,?),
54 call_cleanup(0,0),
55 call_cleanup(0,?,0),
56 call_residue(0,?),
57 call_residue_vars(0,?),
58 call_shared_object_function(:,+),
59catch(0,?,0),
60 clause(:,?),
61 clause(:,?,?),
64 depth_bound_call(0,+),
65 findall(?,0,-),
66 findall(?,0,-,?),
67 forall(0,0),
68 format(+,:),
69 format(+,+,:),
70 freeze(?,0),
72 if(0,0,0),
73 ignore(0),
74 incore(0),
75 initializion(0),
76 initializion(0,+),
77 nospy(:),
78 not(0),
79 notrace(0),
80 once(0),
81 phrase(2,?),
82 phrase(2,?,+),
83 predicate_property(:,?),
84 predicate_statistics(:,-,-,-),
85 on_exception(+,0,0),
86 qsave_program(+,:),
87 retract(:),
88 retract(:,?),
89 retractall(:),
90 reconsult(:),
91 setof(?,0,-),
92 setup_call_cleanup(0,0,0),
93 setup_call_catcher_cleanup(0,0,?,0),
94 spy(:),
96 when(+,0),
97 with_mutex(+,0),
98 with_output_to(?,0),
99 '->'(0 , 0),
100 '*->'(0 , 0),
101 ';'(0 , 0),
102 ^(+,0),
103 {}(0,?,?),
104 ','(2,2,?,?),
105 ';'(2,2,?,?),
106 '|'(2,2,?,?),
107 ->(2,2,?,?),
108 \+(2,?,?),
109 \+( 0 ).
110
111%% @}
112
abolish(+ PredSpec)
assert_static(: C)
asserta_static(: C)
assertz_static(: C)
clause( +Term )
current_predicate( F )
format(+ T)
hide_predicate(+ Pred)
stash_predicate(+ Pred)
assert(+ C)
asserta(+ C)
assertz(+ C)
retract(+ C)
retractall(+ G)
nospy( + P )
Definition: spy.yap:150
spy( + P )
call( 0:P )
call_cleanup(: Goal, : CleanUpGoal)
forall(: Cond,: Action)
if(? G,? H,? I)
ignore(: Goal)
incore( 0:P )
once( 0:G)
setup_call_cleanup(: Setup,: Goal, : CleanUpGoal)
reconsult(+ F )