DGKS Prolog
Features
Download
List of library functions
Trouble Shooting
Project Status
Known Problems
What I am working on now
Update Log
Features
-
IDE
-
Prolog VM
-
Many prolog library functions. The ones missing are mainly related to file io.
-
Complete parser integrated with the IDE. The compile messages show up in the IDE and are clickable.
-
Debugger integrated with the IDE. The debugger stops in the source code in the IDE and not in a separate window. Supports spying of individual lines of source code and not just Functor/Arity spy points. Has a run to cursor function. When the VM throws an error the debugger somes up at the point the error it thrown.
-
Speed. Compared to LPA Prolog in interpreted mode it runs 9-12 times slower depending on the test. This benchmark was done 6 months ago.
Download Instructions
- With Java Run Time Environment Support
- Download the Java Run Time Environment from www.javasoft.com
- Download Prolog.zip JAR file. This is the version compiled without optimizations and should work under the MS VM (OR download PrologO.zip JAR file. This is the optimized version and does not work under the MS VM).
- Install the Java Run Time Environment
- Start Prolog with the following command:
JRE -cp Prolog.zip prolog.dgks.Prolog_1_02
Prolog.zip
should be the full path name. For example if Prolog.zip
is in c:\whereever
then the command should be -cp c:\whereever\Prolog.zip
- Without Java Run Time Environment Support
- Ensure that Java version 1.02 or greater is installed on your machine.
- Download Prolog.zip JAR file. This is the version compiled without optimizations and should work under the MS VM (OR download PrologO.zip JAR file. This is the optimized version and does not work under the MS VM).
- Ensure the Prolog.zip is in your class path. Yes you actually put the name of the file in your class path even though the variable is named class path and not file path. If you put just the path to the directory containing Prolog.zip it will not work.
- Run
java prolog.dgks.Prolog_1_02
to start prolog.
- Run Now Over the Web
This is a prolog interpreter written in Java. It has been tested recently with JDK1.1.5 under Windows NT.
Project Status
This program was written as a hobby for the last 2 years. I wanted the experience of writting a VM, compiler, IDE and debugger. At the moment its summer in Vancouver and so progress is slower. Fall and winter are better for coding since it is cold and rainly.
Known Problems
-
The variable bindings of a variable are shown multiple times.
-
The creation of new variable keeps the same name as the old variable which look misleading although it is actually really a new variable.
-
None of the IO Predicate are implemented
What I am working on now
I don't seem to be getting around to anything I guess because it is summer. Fall and winter are rainy so that is better weather for coding in.
Update Log
- Dec 15 1998
-
1 / 2 was returning 2.0 (real) and not 2 (integer). So was 1 * 2. They now return integers.
- Dec 10 1998
-
Fixed some UI problems. Fixed setof/3. Compiled with Java 1.2 RC2.
- June 9 1998
-
Fixed the find and replace dialog so it works now. The way focus was handled has changed since 1.02 and so it stopped working.
- June 8 1998
-
Fixed a bug in the UI which caused the program to set focus between two windows back over and over again. This bug should now no appear under the Sun VM of the MS VM.
- May 29 1998
-
Changed the name of the package from
greg.java.prolog
to prolog.dgks
. Start the program with prolog.dgks.prolog_1_02
.
That space invader story, that's why.
Number of visitors
This page hosted by
Get your own Free Home Page