YAP
7.1.0
android.yap
Go to the documentation of this file.
1
/**
2
@file android.yap
3
4
@defgroup YAPAndroid Android Support
5
@ingroup Extensions
6
@{
7
*/
8
%:- module(android,
9
% [text_to_query/2]).
10
11
:-
initialization
(yap_flag(verbose,
_
,normal)).
12
13
:-
meta_predicate( text_to_query( :,
-
) ).
14
15
text_to_query(
MString
,
Status
)
:-
16
strip_module( user
:
MString
,
Mod
,
String
),
17
top_query(android
:
query_(
Mod
:
String
,
Status
) ).
18
19
query_(
Mod
:
String
,
Status
)
:-
20
atomic_to_term(
String
,
Goal
,
VarNames
),
21
(
22
is_list
(
Goal
)
->
G
=
consult
(
Goal
)
;
G
=
Goal
),
23
query_to_answer(
Mod
:
G
,
VarNames
,
Status
,
Bindings
).
24
25
26
query_to_answer
:
file_search_path
(data,
'/data/data/pt.up.yap/files/Yap/myddas'
).
27
%% @}
28
is_list/1
is_list( ?_List_ )
initialization/1
initialization(+ G)
consult/1
consult(+ F)
file_search_path/2
file_search_path(+Name:atom, -Directory:atom)
pl
android.yap
Generated by
1.9.3