Last modified by cmot on 2023/09/11 16:16

From version 4.1
edited by cmot
on 2014/06/09 18:58
Change comment: There is no comment for this version
To version 9.1
edited by cmot
on 2014/06/09 19:39
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,10 +1,19 @@
1 -Download the [[KielerCompilerConsole>>url:http://git.rtsys.informatik.uni-kiel.de:7990/projects/KIELER/repos/semantics/browse/standalone/KielerCompiler.jar?at=1c807c15f863b699d96d97038501663608d0f2bf&raw||shape="rect"]] as a runnable Java JAR archive.
1 +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
2 2  
3 +1. Download the [[KielerCompilerConsole>>url:http://git.rtsys.informatik.uni-kiel.de:7990/projects/KIELER/repos/semantics/browse/standalone/KielerCompiler.jar?at=1c807c15f863b699d96d97038501663608d0f2bf&raw||shape="rect"]] as a runnable Java JAR archive and
4 +1. Enable the TCP Server in the KIELER RCA.
3 3  
4 -[[image:attach:KiCoConsole1.jpg]]
6 +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.
5 5  
6 -The KIELER Compiler Console is a pure Java program that together with a KIELER RCA allows to call the KIELER Compiler from the console. Download the [[KielerCompilerConsole>>url:http://git.rtsys.informatik.uni-kiel.de:7990/projects/KIELER/repos/semantics/browse/standalone/KielerCompiler.jar?at=1c807c15f863b699d96d97038501663608d0f2bf&raw||shape="rect"]] as a runnable Java JAR archive and start it using java:
7 7  
9 +
10 +{{toc/}}
11 +
12 +== Using the KielerCompiler from Console
13 +[[image:attach:KiCoConsole1.jpg]] ==
14 +
15 +Download the [[KielerCompilerConsole>>url:http://git.rtsys.informatik.uni-kiel.de:7990/projects/KIELER/repos/semantics/browse/standalone/KielerCompiler.jar?at=1c807c15f863b699d96d97038501663608d0f2bf&raw||shape="rect"]] as a runnable Java JAR archive and start it using java:
16 +
8 8  {{{java -jar KielerCompiler.jar <host>:<port> [Options] <transformationID_1> .. <transformationID_n>}}}
9 9  
10 10  In the above screenshot you see the KielerCompiler options when calling with no/too few parameters. The host or the port are mandatory parameters. By default the port **5555** is used and the default host is **localhost**. If you secify the port you do not need to specify localhost, if you specify the host you do not need to specify 5555. The following options are available:
... ... @@ -13,3 +13,29 @@
13 13  * -o <filename> : Use a specific output file (and not the console)
14 14  * -v : Use verbose compilation, more error messages
15 15  * -s: Use strict mode compilation (only apply selected transformations)
25 +
26 +== Enable the TCP Server ==
27 +
28 +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.
29 +
30 +[[image:attach:KiCoConsole0.jpg]]
31 +
32 +== Example 1 ==
33 +
34 +[[image:attach:KiCoConsole2.jpg]]
35 +
36 +When calling the KielerCompiler with the ABORT transformation and console output.
37 +
38 +
39 +
40 +== Example 2
41 +[[image:attach:KiCoConsole3.jpg]] ==
42 +
43 +Using the KielerCompiler with CODEGENERATION transformation and a specific output file.
44 +
45 +
46 +
47 +== Example 3
48 +[[image:attach:KiCoConsole4.jpg]] ==
49 +
50 +Using the KielerCompiler with a non exisiting transformation which generates an error message.
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9470920
1 +9470932
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470920/KIELER Compiler Console
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/9470932/KIELER Compiler Console