java.lang.Object
simula.compiler.Simula
Simula Main class containing the 'main' entry.
The Simula Compiler is normally activated through a command-line of this form:
java -jar releaseHome\simula.jarIn this simple case the Simula Editor is started.
General Case:
In special rare situations you may use the general version of the command-line form:java [java-options] -jar releaseHome\simula.jar [simula-options] simula-sourceFileJava-options are described in the relevant Java Technical Dokumentation.
Simula-sourceFile is the file containing the Simula text to be compiled and executed.
Possible simula-options include:
-help Print this synopsis of standard options -caseSensitive Source file is case sensitive. See next page. -noexec Don't execute generated .jar file -nowarn Generate no warnings -noextension Disable all language extensions. In other words, follow the Simula Standard literally -select characters First, all selectors are reset. Then, for each character, the corresponding selector is set -verbose Output messages about what the compiler is doing -keepJava directory Specify where to place generated .java files Default: Temp directory which is deleted upon exit -output directory Specify where to place generated executable .jar file Default: Current workspace\bin -extLib directory Specify where to search for precompiled classes and procedures. If not found, output directory is also searched.
Link to GitHub: Source File.
- Author:
- Øystein Myhre Andersen
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static void
Utility: Print an error message on a popup panel.private static void
help()
Print synopsis of standard optionsstatic void
Main entry.private static void
setKeepJava
(String dir) Set keep .java files.private static void
setOutputDir
(String dir) Set output directory.static void
setSelectors
(String chars) Set selectors for conditional compilation.
-
Constructor Details
-
Simula
private Simula()Default constructor.
-
-
Method Details
-
help
private static void help()Print synopsis of standard options -
main
Main entry.- Parameters:
argv
- arguments
-
error
Utility: Print an error message on a popup panel.- Parameters:
msg
- the error message
-
setSelectors
Set selectors for conditional compilation.%SELECT select-character { select-character }
- Parameters:
chars
- select characters
-
setKeepJava
Set keep .java files.Option: -keepJava <directory> Specify where to place generated .java files
- Parameters:
dir
- the .java output directory-
-
setOutputDir
Set output directory.Option: -output <directory> Specify where to place generated executable .jar file
- Parameters:
dir
- the output directory-
-