Contents | Prev | Next | Index


Compiler Usage

Canterbury Modula-2 for Java can be invoked from a simple command line interface. On Windows-95/98/NT systems, this is usually done from a DOS prompt. On OS/2 systems, open an OS/2 text window. In general, since the compiler is entirely implemented in Java, it is run by a Java interpreter. Hence, whatever way the Java interpreter gets started, that's how to start Canterbury Modula-2, too. On most operating systems the following simple command line will do:

java mhc.mod <Modula-2 file> <compiler switches>

Canterbury Modula-2 uses source files with the ".mod" or ".def" name extension.

The compiler switches are desribed in one of the following documentation sections. The same is true for comment embedded directives, which can be used inside Modula-2 source files. The compiler uses environment and system properties for finding the directories needed for reading source files or for writing output Java files.

See also A first Example documentation.


Contents | Prev | Next | Index

Canterbury Modula-2 for Java  (Last documentation update Feb 8, 2000)
Copyright © 1998 Mill Hill & Canterbury Corporation, Ltd. All rights reserved
Please send any comments or corrections to mhc@webcom.com