-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathloader.lgt
More file actions
29 lines (23 loc) · 794 Bytes
/
loader.lgt
File metadata and controls
29 lines (23 loc) · 794 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
:- initialization((
logtalk_load_context(directory, Directory),
assertz(logtalk_library_path(lflat, Directory)),
assertz(logtalk_library_path(lflat_examples, lflat('examples/'))),
% load Logtalk libraries used by L-FLAT:
logtalk_load(types(loader)),
logtalk_load(sets(loader)),
logtalk_load(gensym(loader)),
logtalk_load(roots(loader)),
% load L-FLAT itself:
logtalk_load(lflat, [unknown_entities(silent), optimize(on)]),
logtalk_load(hooks, [optimize(on)]),
% print the L-FLAT banner:
interaction::banner
)).
% some handy shortcuts to run the L-FLAT provided examples:
% (examples are located in the $HOME/lflat/examples directory)
run_example(Example) :-
interaction::run_example(Example).
run_examples(List) :-
interaction::run_examples(List).
all :-
run_example(all).