mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 14:57:03 +00:00
This change introduces some (partial) Java versions of the mercury library
Estimated hours taken: 3 Branches: main This change introduces some (partial) Java versions of the mercury library which are currently needed to compile some .java files generated by the mercury compiler for the tests/benchmarks test cases. These additions are required temporarily for testing purposes until the mercury library can be compiled in grade java. mercury/java/Commit.java: mercury/java/DuExistInfo.java: mercury/java/DuExistLocn.java: mercury/java/DuFunctorDesc.java: mercury/java/DuPtagLayout.java: mercury/java/EnumFunctorDesc.java: mercury/java/JavaInternal.java: mercury/java/MethodPtr.java: mercury/java/NotagFunctorDesc.java: mercury/java/PseudoTypeInfo.java: mercury/java/Sectag_Locn.java: mercury/java/TypeCtorInfo_Struct.java: mercury/java/TypeCtorRep.java: mercury/java/TypeFunctors.java: mercury/java/TypeLayout.java: mercury/java/UnreachableDefault.java: All files that were located in the mercury/java directory have been moved to mercury/java/runtime. mercury/java/Makefile: A simple Makefile to set up a couple of symbolic links so we can just include the mercury/java directory in our CLASSPATH. mercury/java/library/assoc_list.java: mercury/java/library/bool.java: mercury/java/library/builtin.java: mercury/java/library/deconstruct.java: mercury/java/library/enum.java: mercury/java/library/integer.java: mercury/java/library/io.java: mercury/java/library/list.java: mercury/java/library/map.java: mercury/java/library/mer_int.java: mercury/java/library/mr_char.java: mercury/java/library/mr_float.java: mercury/java/library/mr_int.java: mercury/java/library/ops.java: mercury/java/library/private_builtin.java: mercury/java/library/require.java: mercury/java/library/set.java: mercury/java/library/std_util.java: mercury/java/library/string.java: mercury/java/library/term.java: mercury/java/library/time.java: mercury/java/library/tree234.java: mercury/java/library/type_desc.java: These are partial Java versions of mercury library modules. They are very rough but will currently allow for most of the tests/benchmark directory to run in Java.
This commit is contained in:
20
java/runtime/JavaInternal.java
Normal file
20
java/runtime/JavaInternal.java
Normal file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// Copyright (C) 2001-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.
|
||||
//
|
||||
//
|
||||
// All modifications to this file will require changes to:
|
||||
// compiler/mlds_to_java.m
|
||||
//
|
||||
//
|
||||
// At the moment this class is just used to store the command line
|
||||
// arguments. We can't put them in one of the library modules because
|
||||
// we need to hold them in a class variable in a top level class.
|
||||
//
|
||||
|
||||
package mercury.runtime;
|
||||
|
||||
public class JavaInternal {
|
||||
public static java.lang.String[] args;
|
||||
}
|
||||
Reference in New Issue
Block a user