doc fixes
This commit is contained in:
parent
5c870c11f7
commit
1a0532f178
16
docs/yap.tex
16
docs/yap.tex
@ -14400,7 +14400,8 @@ Letter = 'D',
|
|||||||
Number = 123456789 ?
|
Number = 123456789 ?
|
||||||
yes
|
yes
|
||||||
@end example
|
@end example
|
||||||
generates the query @example
|
generates the query
|
||||||
|
@example
|
||||||
SELECT A.Letter , 'John Doe' , A.Number
|
SELECT A.Letter , 'John Doe' , A.Number
|
||||||
FROM 'phonebook' A
|
FROM 'phonebook' A
|
||||||
WHERE A.Name = 'John Doe';
|
WHERE A.Name = 'John Doe';
|
||||||
@ -14464,7 +14465,8 @@ above. Assuming the declaration:
|
|||||||
yes
|
yes
|
||||||
@end example
|
@end example
|
||||||
we
|
we
|
||||||
write:@example
|
write:
|
||||||
|
@example
|
||||||
?- db_view(direct_cycle(A,B),(edge(A,B), edge(B,A))).
|
?- db_view(direct_cycle(A,B),(edge(A,B), edge(B,A))).
|
||||||
yes
|
yes
|
||||||
?- direct_cycle(A,B)).
|
?- direct_cycle(A,B)).
|
||||||
@ -14472,7 +14474,8 @@ A = 10,
|
|||||||
B = 20 ?
|
B = 20 ?
|
||||||
@end example
|
@end example
|
||||||
This call generates the SQL
|
This call generates the SQL
|
||||||
statement: @example
|
statement:
|
||||||
|
@example
|
||||||
SELECT A.attr1 , A.attr2
|
SELECT A.attr1 , A.attr2
|
||||||
FROM Edge A , Edge B
|
FROM Edge A , Edge B
|
||||||
WHERE B.attr1 = A.attr2 AND B.attr2 = A.attr1;
|
WHERE B.attr1 = A.attr2 AND B.attr2 = A.attr1;
|
||||||
@ -14897,7 +14900,8 @@ yes
|
|||||||
The MySQL C API permits two modes for transferring the data generated by
|
The MySQL C API permits two modes for transferring the data generated by
|
||||||
a query to the client, in our case YAP. The first mode, and the default
|
a query to the client, in our case YAP. The first mode, and the default
|
||||||
mode used by the MYDDAS-MySQL, is to store the result. This mode copies all the
|
mode used by the MYDDAS-MySQL, is to store the result. This mode copies all the
|
||||||
information generated to the client side.@example
|
information generated to the client side.
|
||||||
|
@example
|
||||||
?- db_my_result_set(X).
|
?- db_my_result_set(X).
|
||||||
X=store_result
|
X=store_result
|
||||||
yes
|
yes
|
||||||
@ -16173,7 +16177,7 @@ be lost.
|
|||||||
We next discuss several issues on trying to make Prolog programs run
|
We next discuss several issues on trying to make Prolog programs run
|
||||||
fast in YAP. We assume two different programming styles:
|
fast in YAP. We assume two different programming styles:
|
||||||
|
|
||||||
@table @bullet
|
@itemize @bullet
|
||||||
@item Execution of @emph{deterministic} programs often
|
@item Execution of @emph{deterministic} programs often
|
||||||
boils down to a recursive loop of the form:
|
boils down to a recursive loop of the form:
|
||||||
@example
|
@example
|
||||||
@ -16182,7 +16186,7 @@ loop(Env) :-
|
|||||||
loop(NewEnv).
|
loop(NewEnv).
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
@end table
|
@end itemize
|
||||||
|
|
||||||
@section Deterministic Programs
|
@section Deterministic Programs
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user