mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-16 18:03:36 +00:00
Estimated hours taken: 50 Branches: main Bug fixes and additions to the Java back-end so that it will now successfully compile and run mercury programs which contain higher order code as well as non-deterministic code. With some hacked up Mercury library code (in Java) I am able to compile 10 of the 11 files in the tests/benchmarks directory into Java and run them to receive the correct output. mercury/compiler/mlds_to_java.m: Many small bug fixes. Disabled current (incomplete) name mangling code. All class, package and method names apart from java.* and mercury.runtime.* will be output as lowercase for the moment. Added code to prefix some classes/packages so we don't run into the problem of having a class or package name which is also a Java reserved word. This is the case with the mercury library modules int and char. Added code to implement commits. mercury/compiler/java_util.m: Added a few missing Java reserved words. mercury/compiler/ml_code_util.m: A small change so that in one case where they weren't, multiple return values are now generated in the MLDS. mercury/java/Commit.java: Added this file, a throwable class used for the implementation of commits. mercury/java/ProcAddr.java: mercury/java/Compare.java: mercury/java/Unify.java: Removed these files, they're now obsolete as they all use the standard interface for method pointers provided by MethodPtr.java. mercury/java/TypeCtorInfo_Struct.java: Altered to reference mercury.runtime.MethodPtr instead of mercury.runtime.[Unify|Compare].
15 lines
361 B
Java
15 lines
361 B
Java
//
|
|
// Copyright (C) 2002 The University of Melbourne.
|
|
// This file may only be copied under the terms of the GNU Library General
|
|
// Public License - see the file COPYING.LIB in the Mercury distribution.
|
|
//
|
|
// This is a throwable class used for the Java implementation of commits.
|
|
//
|
|
|
|
package mercury.runtime;
|
|
|
|
public class Commit extends java.lang.Error {
|
|
|
|
}
|
|
|