Go to the first, previous, next, last section, table of contents.
Author(s): Jesús Correas.
This module defines a low level Java to Prolog interface.
- Library usage:
:- use_module(library(jtopl)).
- Exports:
- Predicates:
prolog_server/0
,
prolog_parse/2
.
- Other modules used:
- Application modules:
javasock
.
- System library modules:
system
,
read
,
write
,
dynamic
,
lists
,
format
,
dynmods
,
atom2term
.
- PREDICATE: prolog_server/0:
-
Usage:
- Description: Prolog server entry point. Reads from the standard input the node name and port number where the java client resides, and starts the prolog server listening at the data socket. This predicate acts as a server: includes an infinite read-process loop until the prolog_exit command is received.
- PREDICATE: prolog_parse/2:
-
Usage: prolog_parse(+String,-(Term))
- Description: Parses the string received as first argument and returns the prolog term as second argument. This is a private predicate but is called from java side.
- Call and exit should be compatible with:
+String
is a string (a list of character codes).
(basic_props:string/1
)
-(Term)
is any term.
(basic_props:term/1
)
Go to the first, previous, next, last section, table of contents.