SE

main page

download

publications

faq

register

developer


SE

SE-Lab

RWTH Aachen

Fachgruppe Informatik

MontiCore

MontiCore can be used as an Eclipse (Version 3.4.* or 3.5.*, MontiCore up to 1.2.5 version 3.4.* only) plugin or on the console with an installed Java 1.6 JDK. Both platforms are supported by all versions and provide the same functionality. The following stable versions are available:

Please note that MontiCore 1.9.* are experimental versions those are not aligned with the current documentation. The next entirely documented version will be MontiCore 2.0.

MontiCore 1.9.1 21.07.2010
MontiCore 1.9.0 06.05.2010
MontiCore 1.2.5 02.03.2010
MontiCore 1.2.4 16.12.2009
MontiCore 1.2.3 07.10.2009
MontiCore 1.2.2 19.08.2009
MontiCore 1.2.1 04.06.2009
MontiCore 1.2.0 25.03.2009
MontiCore 1.1.6 10.12.2008


Update Site: http://www.se-rwth.de/monticore/update/

A tutorial can be found here (German only).

More up-to-date information is included in the following snapshot of the MontiCore documentation which is updated on a daily basis:

The following steps guide the first use of MontiCore.

Console

  1. Download the latest version of MontiCore.
  2. Unzip the archive in a directory of your choice (retain the internal directory structure). In the following, we assume that the content is unzipped to /MontiCore
  3. Register to get your personal OSTP-account to use MontiCore.
  4. Create a temporary directory and extract a first example
    java -jar /MontiCore/de.monticore.examples_x.y.z.jar automaton myexample
    (This command extracts the example automaton to the directory myexample. Other examples are available if you call the jar without parameters. Please ensure that Java JDK 1.5 is installed. Previous versions or Java 1.6 are not supported.)
  5. Change to the directory myexample and call the MontiCore OSTP service to translate the grammars in the directory def via
    java -jar /MontiCore/de.monticore.console_x.y.z.jar def -o .
    (Calls the MontiCore OSTP service on the grammars in the folder def using the current folder as project (and therefore output) folder. The resulting Java files will be created in a folder named gen.)
  6. Enter your username and password. This data will be stored in a file named .passwd in cleartext for the next call to the MontiCore OSTP service.
  7. The resulting files can be compiled with a Java-compiler, the process is simplified by using Apache Ant.
  8. Compile the project with ant compile, clean the project with ant clean and see the example running via ant run01, ant run02.

Eclipse

  1. Download the latest version of MontiCore.
  2. Unzip to plugin folder of your Eclipse 3.4 installation (restart Eclipse afterwards)
  3. Register to get your personal OSTP-account to use MontiCore.
  4. Use the project wizard: New>Project ...>MontiCore to create a MontiCore project.
  5. Translate the MontCore grammars by clicking with the right mouse button to the project and choose "generate project (mc)". Enter your name and password to access the online service.
  6. The resulting files are automatically compiled with the Eclipse Java-compiler. Alternatively Apache Ant can be used (Available within Eclipse as a view). Compile the project with ant compile and clean the project with ant clean. (Note: The console of Eclipse doesn't support the typing of name and password. Create a file name ".passwd" (without quotes) with the first line being the login name, the second line being the password. Place this file in the project root and the ant scripts automatically connect to the server. Call ant clean, before you use other targets.)