Module Simula

Class Option

java.lang.Object
simula.compiler.utilities.Option

public final class Option extends Object
Compile Time Options.

Link to GitHub: Source File.

Author:
Øystein Myhre Andersen
  • Field Details

    • INLINE_TESTING

      public static boolean INLINE_TESTING
      INLINE_TESTING on/off
    • CaseSensitive

      public static boolean CaseSensitive
      Source file is case sensitive.
    • verbose

      public static boolean verbose
      Output messages about what the compiler is doing.
    • WARNINGS

      public static boolean WARNINGS
      Generate no warnings
    • noExecution

      public static boolean noExecution
      Don't execute generated .jar file
    • EXTENSIONS

      public static boolean EXTENSIONS
      Disable all language extensions. In other words, follow the Simula Standard literally
    • SPORT

      public static boolean SPORT
      S-PORT extensions on/off
    • keepJava

      public static File keepJava
      Used by Java-Coding to save the generated .java files. If not set, a temp directory is used/created.
    • TRACING

      public static boolean TRACING
      Debug option
    • DEBUGGING

      public static boolean DEBUGGING
      Debug option
    • TRACE_SCAN

      public static boolean TRACE_SCAN
      Debug option
    • TRACE_COMMENTS

      public static boolean TRACE_COMMENTS
      Debug option
    • TRACE_PARSE

      public static boolean TRACE_PARSE
      Debug option
    • TRACE_ATTRIBUTE_OUTPUT

      public static boolean TRACE_ATTRIBUTE_OUTPUT
      Debug option
    • TRACE_ATTRIBUTE_INPUT

      public static boolean TRACE_ATTRIBUTE_INPUT
      Debug option
    • TRACE_CHECKER

      public static boolean TRACE_CHECKER
      Debug option
    • TRACE_CHECKER_OUTPUT

      public static boolean TRACE_CHECKER_OUTPUT
      Debug option
    • TRACE_FIND_MEANING

      public static int TRACE_FIND_MEANING
      Debug option
    • TRACE_CODING

      public static boolean TRACE_CODING
      Debug option
    • GNERATE_LINE_CALLS

      public static boolean GNERATE_LINE_CALLS
      Debug option
    • USE_FILE_CLASS_API

      public static int USE_FILE_CLASS_API
      Debug option
    • TRACE_BYTECODE_OUTPUT

      public static boolean TRACE_BYTECODE_OUTPUT
      Debug option
    • LIST_REPAIRED_INSTRUCTION_LIST

      public static boolean LIST_REPAIRED_INSTRUCTION_LIST
      Debug option
    • TRACE_REPAIRING

      public static boolean TRACE_REPAIRING
      Debug option
    • SOURCE_FILE

      public static String SOURCE_FILE
      Runtime Options
    • RUNTIME_USER_DIR

      public static String RUNTIME_USER_DIR
      Runtime Options
  • Constructor Details

    • Option

      private Option()
      The default constructor
  • Method Details

    • InitCompilerOptions

      public static void InitCompilerOptions()
      Initiate Compiler options
    • getOption

      public static boolean getOption(String id)
      Returns the option name 'id'
      Parameters:
      id - option id
      Returns:
      the option name 'id'
    • setOption

      public static void setOption(String id, boolean val)
      Set the option named 'id' to the given value
      Parameters:
      id - option id
      val - new option value
    • selectCompilerOptions

      public static void selectCompilerOptions()
      Editor Utility: Select Compiler Options.
    • checkBox

      private static JCheckBox checkBox(String id, String tooltip)
      Editor Utility: Create a checkBox with tooltips.
      Parameters:
      id - option id
      tooltip - option's tooltip or null
      Returns:
      the resulting check box