Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Image Added

The KIELER Compiler Console is a pure Java program that together with a KIELER RCA allows to call the KIELER Compiler from the console. For using the KIELER Compiler Console you need to

  1. Enable the TCP Server in the KIELER RCA and
  2. Download the KielerCompilerConsole as a runnable Java JAR archive and Enable the TCP Server in the KIELER RCArun it.

In the following we describe the details for both, the enabling of the TCP server and the possible command line calls of KiCo from the console.

Table of Contents

 

Enable the TCP Server

Before you can use the KielerCompiler.jar from the console, you need to start the KIELER RCA and activate the TCP Server. This is done using the button at 1. shown in the screenshot below. When pressing it the windows shown at 2. is displayed and allows to enable or disable the server and also to modify the default port of 5555. Whenever the server was enabled and is started, you will see its job running at 3. in the lower region of the KIELER RCA. When you enabled the server in previous runs of the KIELER RCA it will automatically started when you run KIELER again.

Image Added

Non-GUI TCP Server

Alternatively (after you configured the port) you can start the KiCo TCP Server via command line:

kieler -application de.cau.cs.kieler.kico.web.server -noExit

This will start a background process with the KIELER Compiler TCP Server.

Using the KielerCompiler from ConsoleImage Removed

Download the KielerCompilerConsole as a runnable Java JAR archive and start it using java:

...

  • -f <filename> : Use a specific input file (and not the console)
  • -o <filename> : Use a specific output file (and not the console)
  • -v : Use verbose compilation, more error messages
  • -s: Use strict mode compilation (only apply selected transformations)

Enable the TCP Server

Before you can use the KielerCompiler.jar from the console, you need to start the KIELER RCA and activate the TCP Server. This is done using the button at 1. shown in the screenshot below. When pressing it the windows shown at 2. is displayed and allows to enable or disable the server and also to modify the default port of 5555. Whenever the server was enabled and is started, you will see its job running at 3. in the lower region of the KIELER RCA. When you enabled the server in previous runs of the KIELER RCA it will automatically started when you run KIELER again.

...

Examples

Example 1

When calling the KielerCompiler with the ABORT transformation and console output.

 

Example 2
Image Modified

Using the KielerCompiler with CODEGENERATION transformation and a specific output file.

 

Example 3
Image Modified

Using the KielerCompiler with a non exisiting transformation which generates an error message.