Contents

Creating a Language Project

This section details the steps required to create a language project.
Whenever the name of the language appears, we use MyLanguage.

Checking out the Required Projects

The first step is to check out the AMMAScripts, and AMMACore projects in your workspace, if you do not have them already.

To do this, you can connect anonymously by CVS to repository /cvsroot/technology on server dev.eclipse.org using the pserver protocol. Then, you can checkout the two projects available in org.eclipse.gmt/org.eclipse.gmt.tcs/scripts/.

NB: Some external libraries are required, please refer to the README.txt file in the AMMAScripts project for more details.

Creating the Directory Structure

Create an ATL project:

Open: File->New->ATL Project

Name the project like your language (e.g., MyLanguage)

Create the following folders and files in your project:

MyLanguage/ (this is the project we just created)

Metamodel/

MyLanguage.km3 (you can copy and paste SampleLanguage.km3 and rename it)

Samples/

<sample programs written in your language, with the corresponding file extension>

Syntax/

MyLanguage.tcs (you can copy and paste SampleLanguage.tcs and rename it)

build.properties (you can copy and paste /SampleLanguage/build.properties and modify it)