Skip to content

Instantly share code, notes, and snippets.

View pmoura's full-sized avatar

Paulo Moura pmoura

View GitHub Profile
@pmoura
pmoura / LogtalkLoader.java
Created November 24, 2018 00:50 — forked from sergio-castro/LogtalkLoader.java
This class shows an easy way to configure Logtalk in SWI or YAP using the Jpl library, together with examples of simple invocations of Logtalk methods from Java. You need to have the jpl jar in your classpath to compile and execute this file.
import jpl.Atom;
import jpl.Compound;
import jpl.JPL;
import jpl.Query;
import jpl.Term;
/**
* This class shows how to configure Logtalk in SWI or YAP using the Jpl library.
* You need to have the jpl jar in your classpath to compile and execute this file.